wallet-connect-web-examples/wallets/react-wallet-auth
Celine Sarafa b45f4369c0
Use standalone modal (#79)
* Use standalone modal

* Set project id

* chore(deps): update deps

* chore(w3m-standalone): use web3modal standalone with auth-client

* fix(deps): update web3modal to v2.2.2

* fix(typescript): revert to 4.9.5

* chore(remove-deps): remove unused dependencies and global declaration

---------

Co-authored-by: Cali93 <armut.cumaali@gmail.com>
2023-03-28 09:58:18 +03:00
..
public feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00
src fix(auth-wallet): build iss with chainId from cacaoPayload 2023-03-22 15:28:06 +00:00
.env.local.example feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00
.eslintrc.json feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00
.gitignore feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00
.prettierrc.json feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00
next-env.d.ts feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00
next.config.js feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00
package-lock.json Use standalone modal (#79) 2023-03-28 09:58:18 +03:00
package.json chore(auth): update auth-clients to latest 2023-03-22 15:24:05 +00:00
README.md docs(auth): ensure auth dapp/wallet readmes are relevant (#63) 2022-09-15 19:50:52 +02:00
tsconfig.json feat/add auth demos (#49) 2022-09-02 12:34:03 +03:00

Auth Wallet Example (React, Typescript, Ethers, NextJS)

This example aims to demonstrate wallet-facing use cases enabled by WalletConnect Auth Alpha. Please only use this for reference and development purposes, otherwise you are at risk of losing your funds.

Useful links

🔗 Live wallet app - https://react-auth-wallet.walletconnect.com/
🔗 Live dapp - https://react-auth-dapp.walletconnect.com/
📚 WalletConnect docs - https://docs.walletconnect.com/2.0

Getting started

Example is built atop of NextJS in order to abstract complexity of setting up bundlers, routing etc. So there are few steps you need to follow in order to set everything up

  1. Go to WalletConnect Cloud and obtain a project id

  2. Add your project details in WalletConnectUtil.ts file

  3. Install dependencies via npm install

  4. Setup your environment variables

cp .env.local.example .env.local

Your .env.local now contains the following environment variables:

  1. Run npm run dev to start local development