├── .github
├── dependabot.yml
├── stale.yml
└── workflows
│ └── lintcheck.yaml
├── .gitignore
├── LICENSE
├── README.md
├── custom-authentication
├── grouped-connection
│ ├── auth0-google-implicit-grouped-example
│ │ ├── .env.example
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── index.html
│ │ ├── package-lock.json
│ │ ├── package.json
│ │ ├── public
│ │ │ ├── favicon.ico
│ │ │ ├── logo192.png
│ │ │ ├── logo512.png
│ │ │ ├── manifest.json
│ │ │ └── robots.txt
│ │ ├── src
│ │ │ ├── App.css
│ │ │ ├── App.tsx
│ │ │ ├── components
│ │ │ │ ├── getBalance.tsx
│ │ │ │ ├── sendTransaction.tsx
│ │ │ │ └── switchNetwork.tsx
│ │ │ ├── index.css
│ │ │ ├── index.tsx
│ │ │ ├── logo.svg
│ │ │ ├── vite-env.d.ts
│ │ │ └── web3authContext.tsx
│ │ ├── tsconfig.json
│ │ ├── tsconfig.node.json
│ │ └── vite.config.ts
│ ├── auth0-google-jwt-grouped-example
│ │ ├── .env.example
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── index.html
│ │ ├── package-lock.json
│ │ ├── package.json
│ │ ├── public
│ │ │ ├── favicon.ico
│ │ │ ├── logo192.png
│ │ │ ├── logo512.png
│ │ │ ├── manifest.json
│ │ │ └── robots.txt
│ │ ├── src
│ │ │ ├── App.css
│ │ │ ├── App.tsx
│ │ │ ├── components
│ │ │ │ ├── getBalance.tsx
│ │ │ │ ├── sendTransaction.tsx
│ │ │ │ └── switchNetwork.tsx
│ │ │ ├── index.css
│ │ │ ├── index.tsx
│ │ │ ├── logo.svg
│ │ │ ├── vite-env.d.ts
│ │ │ └── web3authContext.tsx
│ │ ├── tsconfig.json
│ │ ├── tsconfig.node.json
│ │ └── vite.config.ts
│ ├── firebase-google-jwt-grouped-example
│ │ ├── .env.example
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── index.html
│ │ ├── package-lock.json
│ │ ├── package.json
│ │ ├── public
│ │ │ ├── favicon.ico
│ │ │ ├── logo192.png
│ │ │ ├── logo512.png
│ │ │ ├── manifest.json
│ │ │ └── robots.txt
│ │ ├── src
│ │ │ ├── App.css
│ │ │ ├── App.tsx
│ │ │ ├── components
│ │ │ │ ├── getBalance.tsx
│ │ │ │ ├── sendTransaction.tsx
│ │ │ │ └── switchNetwork.tsx
│ │ │ ├── index.css
│ │ │ ├── index.tsx
│ │ │ ├── logo.svg
│ │ │ ├── vite-env.d.ts
│ │ │ └── web3authContext.tsx
│ │ ├── tsconfig.json
│ │ ├── tsconfig.node.json
│ │ └── vite.config.ts
│ └── modal-google-email-passwordless-grouped-example
│ │ ├── .env.example
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── index.html
│ │ ├── package-lock.json
│ │ ├── package.json
│ │ ├── public
│ │ └── vite.svg
│ │ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── assets
│ │ │ └── react.svg
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── main.tsx
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ │ ├── tsconfig.json
│ │ ├── tsconfig.node.json
│ │ └── vite.config.ts
└── single-connection
│ ├── auth0-implicit-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── auth0-jwt-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── spinner.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── cognito-implicit-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── custom-jwt-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── server
│ │ ├── .gitignore
│ │ ├── package-lock.json
│ │ ├── package.json
│ │ ├── privateKey.pem
│ │ ├── publicKey.pem
│ │ └── server.js
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── discord-implicit-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── facebook-implicit-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── firebase-jwt-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── google-implicit-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── google-one-tap-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── spinner.svg
│ │ ├── utils.ts
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── modal-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── vite.svg
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── assets
│ │ │ └── react.svg
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── main.tsx
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ ├── twitch-implicit-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
│ └── worldcoin-implicit-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
│ ├── src
│ ├── App.css
│ ├── App.tsx
│ ├── components
│ │ ├── getBalance.tsx
│ │ ├── sendTransaction.tsx
│ │ └── switchNetwork.tsx
│ ├── index.css
│ ├── index.tsx
│ ├── logo.svg
│ ├── vite-env.d.ts
│ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── lerna.json
├── mlc_config.json
├── other
├── algorand-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── algorandRPC.ts
│ │ ├── index.css
│ │ ├── logo.svg
│ │ ├── main.tsx
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── aptos-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── aptosRPC.ts
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── bitcoin-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── bitcoinRPC.ts
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── spinner.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── cosmos-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── cosmosRPC.ts
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── multi-chain-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── RPC
│ │ │ ├── ethersRPC.ts
│ │ │ ├── polkadotRPC.ts
│ │ │ ├── solanaRPC.ts
│ │ │ └── tezosRPC.ts
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── polkadot-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── polkadotRPC.ts
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── polymesh-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── polymeshRPC.ts
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── server-side-verification-example
│ ├── .env.example
│ ├── .eslintrc.json
│ ├── .gitignore
│ ├── README.md
│ ├── app
│ │ ├── App.tsx
│ │ ├── api
│ │ │ ├── login-external
│ │ │ │ └── route.ts
│ │ │ └── login
│ │ │ │ └── route.ts
│ │ ├── favicon.ico
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ ├── page.tsx
│ │ └── web3authContext.tsx
│ ├── components
│ │ ├── getBalance.tsx
│ │ ├── sendTransaction.tsx
│ │ └── switchNetwork.tsx
│ ├── next-env.d.ts
│ ├── next.config.js
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── next.svg
│ │ └── vercel.svg
│ └── tsconfig.json
├── sign-protocol-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── eslint.config.js
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── vite.svg
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── assets
│ │ │ └── react.svg
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── signClient.tsx
│ │ ├── ethereumRPC.tsx
│ │ ├── index.css
│ │ ├── main.tsx
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── smart-account-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── eslint.config.js
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── vite.svg
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── assets
│ │ │ └── react.svg
│ │ ├── components
│ │ │ ├── Balance.tsx
│ │ │ └── SendUserOperation.tsx
│ │ ├── index.css
│ │ ├── main.tsx
│ │ ├── provider.tsx
│ │ └── vite-env.d.ts
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ ├── vite.config.js
│ └── vite.config.ts
├── sui-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── suiRPC.ts
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── tezos-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── tezosRPC.ts
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── ton-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── .ts
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── tonRpc.ts
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── tron-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── globals.js
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── logo.svg
│ │ ├── tronRPC.ts
│ │ ├── types
│ │ │ └── tronweb.d.ts
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── xmtp-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── vite.svg
│ ├── src
│ │ ├── App.tsx
│ │ ├── FloatingInbox
│ │ │ ├── ConversationContainer.tsx
│ │ │ ├── Home.tsx
│ │ │ ├── ListConversations.tsx
│ │ │ ├── MessageContainer.tsx
│ │ │ ├── MessageInput.tsx
│ │ │ ├── MessageItem.tsx
│ │ │ ├── NewConversation.tsx
│ │ │ └── index.tsx
│ │ ├── assets
│ │ │ └── react.svg
│ │ ├── index.css
│ │ ├── main.tsx
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.ts
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
└── xrpl-example
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
│ ├── src
│ ├── App.css
│ ├── App.tsx
│ ├── index.css
│ ├── index.tsx
│ ├── logo.svg
│ ├── vite-env.d.ts
│ ├── web3authContext.tsx
│ └── xrplRPC.ts
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── package-lock.json
├── package.json
├── quick-starts
├── angular-quick-start
│ ├── .editorconfig
│ ├── .gitignore
│ ├── .vscode
│ │ ├── extensions.json
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── README.md
│ ├── angular.json
│ ├── karma.conf.js
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── app
│ │ │ ├── app.component.css
│ │ │ ├── app.component.html
│ │ │ ├── app.component.spec.ts
│ │ │ ├── app.component.ts
│ │ │ ├── app.module.ts
│ │ │ ├── ethersRPC.ts
│ │ │ └── viemRPC.ts
│ │ ├── assets
│ │ │ └── .gitkeep
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ ├── main.ts
│ │ ├── polyfills.ts
│ │ ├── styles.css
│ │ └── test.ts
│ ├── tsconfig.app.json
│ ├── tsconfig.json
│ └── tsconfig.spec.json
├── nextjs-quick-start
│ ├── .env.example
│ ├── .eslintrc.json
│ ├── .gitignore
│ ├── README.md
│ ├── app
│ │ ├── favicon.ico
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ └── page.tsx
│ ├── components
│ │ ├── App.tsx
│ │ ├── provider.tsx
│ │ └── wagmi
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ ├── next-env.d.ts
│ ├── next.config.js
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── next.svg
│ │ └── vercel.svg
│ └── tsconfig.json
├── react-quick-start
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── vite.svg
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── assets
│ │ │ └── react.svg
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── main.tsx
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── react-solana-quick-start
│ ├── .env.example
│ ├── .gitignore
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── vite.svg
│ ├── src
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── assets
│ │ │ └── react.svg
│ │ ├── components
│ │ │ ├── getBalance.tsx
│ │ │ ├── sendVersionedTransaction.tsx
│ │ │ ├── signMessage.tsx
│ │ │ ├── signTransaction.tsx
│ │ │ └── switchNetwork.tsx
│ │ ├── index.css
│ │ ├── main.tsx
│ │ ├── vite-env.d.ts
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ ├── tsconfig.node.json
│ └── vite.config.ts
├── vanillajs-quick-start
│ ├── .env.example
│ ├── README.md
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── script.js
│ └── style.css
├── vue-quick-start
│ ├── .browserslistrc
│ ├── .env.example
│ ├── .eslintrc.js
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ └── index.html
│ ├── src
│ │ ├── App.vue
│ │ ├── Home.vue
│ │ ├── assets
│ │ │ └── logo.png
│ │ ├── components
│ │ │ ├── Account.vue
│ │ │ ├── Balance.vue
│ │ │ ├── SendTransaction.vue
│ │ │ └── SwitchNetwork.vue
│ │ ├── main.ts
│ │ ├── shims-vue.d.ts
│ │ ├── style.css
│ │ └── web3authContext.tsx
│ ├── tsconfig.json
│ └── vue.config.js
└── vue-solana-quick-start
│ ├── .browserslistrc
│ ├── .env.example
│ ├── .eslintrc.js
│ ├── .gitignore
│ ├── README.md
│ ├── babel.config.js
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ └── index.html
│ ├── src
│ ├── App.vue
│ ├── Home.vue
│ ├── assets
│ │ └── logo.png
│ ├── components
│ │ ├── getBalance.vue
│ │ ├── sendVersionedTransaction.vue
│ │ ├── signMessage.vue
│ │ ├── signTransaction.vue
│ │ └── switchNetwork.vue
│ ├── main.ts
│ ├── shims-vue.d.ts
│ ├── style.css
│ └── web3authContext.tsx
│ ├── tsconfig.json
│ └── vue.config.js
├── react-playground
├── .env.example
├── .eslintignore
├── .eslintrc.js
├── .prettierignore
├── .prettierrc.yaml
├── README.md
├── favicon-16x16.png
├── favicon-32x32.png
├── favicon.ico
├── index.html
├── package-lock.json
├── package.json
├── postcss.config.js
├── public
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── favicon.ico
│ ├── manifest.json
│ └── robots.txt
├── src
│ ├── App.tsx
│ ├── assets
│ │ ├── web3authLogoBlue.svg
│ │ └── web3authLogoWhite.svg
│ ├── components
│ │ ├── AccountDetails.tsx
│ │ ├── ConnectWeb3AuthButton.tsx
│ │ ├── Console.tsx
│ │ ├── DisconnectWeb3AuthButton.tsx
│ │ ├── Drawer.tsx
│ │ ├── DropDown.tsx
│ │ ├── Form.tsx
│ │ ├── Header.tsx
│ │ ├── MultiForm.tsx
│ │ ├── NotConnectedPage.tsx
│ │ ├── Sidebar.tsx
│ │ ├── SourceCode.tsx
│ │ ├── Tabs.tsx
│ │ └── UserProfile.tsx
│ ├── config
│ │ ├── ABI.json
│ │ ├── chainConfig.ts
│ │ └── consts.ts
│ ├── index.css
│ ├── index.tsx
│ ├── logo.svg
│ ├── pages
│ │ ├── Contract.tsx
│ │ ├── HomePage.tsx
│ │ ├── ServerSideVerification.tsx
│ │ └── Transaction.tsx
│ ├── services
│ │ ├── evmProvider.ts
│ │ ├── playground.tsx
│ │ ├── walletProvider.ts
│ │ └── web3authContext.tsx
│ └── vite-env.d.ts
├── tailwind.config.js
├── torus.config.js
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts
└── set-client-id.js
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 |
3 | updates:
4 | - package-ecosystem: npm
5 | directory: /
6 | schedule:
7 | interval: monthly
8 |
--------------------------------------------------------------------------------
/.github/workflows/lintcheck.yaml:
--------------------------------------------------------------------------------
1 | name: Check Markdown links
2 |
3 | on: push
4 |
5 | jobs:
6 | markdown-link-check:
7 | runs-on: ubuntu-latest
8 | steps:
9 | - uses: actions/checkout@master
10 | - uses: gaurav-nelson/github-action-markdown-link-check@v1
11 | with:
12 | use-quiet-mode: yes
13 |
14 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
25 | # env variables
26 | .env
27 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 |
7 | // Instantiate SDK
8 | const web3AuthOptions: Web3AuthOptions = {
9 | clientId,
10 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
11 |
12 | };
13 |
14 | const web3AuthContextConfig = {
15 | web3AuthOptions
16 | };
17 |
18 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 | VITE_GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
3 | VITE_AUTH0_CLIENT_ID=YOUR_AUTH0_CLIENT_ID
4 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 |
7 | // Instantiate SDK
8 | const web3AuthOptions: Web3AuthOptions = {
9 | clientId,
10 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
11 |
12 | };
13 |
14 | const web3AuthContextConfig = {
15 | web3AuthOptions
16 | };
17 |
18 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 | VITE_GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 |
3 | export function Balance() {
4 | const { address } = useAccount();
5 | const { data } = useBalance({
6 | address,
7 | });
8 |
9 | return (
10 |
11 |
12 |
15 |
16 |
17 | );
18 | }
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/src/components/switchNetwork.tsx:
--------------------------------------------------------------------------------
1 | import { useSwitchChain } from "wagmi";
2 |
3 | export function SwitchChain() {
4 | const { chains, switchChain } = useSwitchChain();
5 |
6 | return (
7 |
8 | {chains.map((chain) => (
9 |
10 |
16 |
17 | ))}
18 |
19 | );
20 | }
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 |
7 | // Instantiate SDK
8 | const web3AuthOptions: Web3AuthOptions = {
9 | clientId,
10 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
11 |
12 | };
13 |
14 | const web3AuthContextConfig = {
15 | web3AuthOptions
16 | };
17 |
18 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 | yarn.lock
10 |
11 | node_modules
12 | dist
13 | dist-ssr
14 | *.local
15 |
16 | # Editor directories and files
17 | .vscode/*
18 | !.vscode/extensions.json
19 | .idea
20 | .DS_Store
21 | *.suo
22 | *.ntvs*
23 | *.njsproj
24 | *.sln
25 | *.sw?
26 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 | Vite + React + TS
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/auth0-implicit-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/auth0-implicit-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/auth0-implicit-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // IMP START - Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 | // IMP END - Dashboard Registration
6 |
7 | // Instantiate SDK
8 | const web3AuthOptions: Web3AuthOptions = {
9 | clientId,
10 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
11 |
12 | };
13 |
14 | const web3AuthContextConfig = {
15 | web3AuthOptions
16 | };
17 |
18 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-implicit-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 | VITE_AUTH0_DOMAIN=YOUR_AUTH0_DOMAIN
3 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/auth0-jwt-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/auth0-jwt-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/auth0-jwt-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
18 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/auth0-jwt-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/cognito-implicit-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/cognito-implicit-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/cognito-implicit-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/single-connection/cognito-implicit-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/custom-jwt-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/custom-jwt-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/custom-jwt-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/server/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # misc
7 | .DS_Store
8 | .env
9 | .eslintcache
10 |
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "custom-jwt-example-server",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "server.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "start": "node server.js",
9 | "build": "npm install",
10 | "lint": "eslint"
11 | },
12 | "keywords": [],
13 | "author": "",
14 | "license": "ISC",
15 | "dependencies": {
16 | "@web3auth/auth-adapter": "^9.7.0",
17 | "cors": "^2.8.5",
18 | "dotenv": "^16.0.3",
19 | "express": "^4.18.2",
20 | "jsonwebtoken": "^8.5.1"
21 | },
22 | "devDependencies": {
23 | "empty-module": "^0.0.2",
24 | "zlib-browserify": "^0.0.3"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/server/publicKey.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN PUBLIC KEY-----
2 | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAskj78C3fpVD6X99O7lQ9
3 | XddAWsoO7+C4n338WguH8NtS5+ZrIQVHJvq1AOIYFaDLaif7GvDnN/4m01AFZ7r3
4 | /5MiaLi4256bNFM817iVTaFsRhqNM+TOm4M/SptEsKaLK8UjLXaLCLoSdk5VCqK3
5 | uNTQGCJoni7AJh2kKcWwmPAEIzFQUBC+v1hxSBy9MwFI9uh7ozp80pV7N1ufgOWd
6 | 9QQFMFXC9NyAXXdQ1l7BltpPf6YJjdjyyY7j7jpYNqxgdpgTIkouyLhAB4wQMq/m
7 | 4lVYKnCBMzagapxjp7cZCUCPClrDFOZ1H1LGQX900XbdyTPBeiripJvvjCc368Jw
8 | 7QIDAQAB
9 | -----END PUBLIC KEY-----
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ";
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
18 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/custom-jwt-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
25 | .env
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/discord-implicit-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/discord-implicit-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/discord-implicit-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/single-connection/discord-implicit-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/facebook-implicit-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/facebook-implicit-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/facebook-implicit-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/single-connection/facebook-implicit-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/firebase-jwt-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/firebase-jwt-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/firebase-jwt-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
18 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/firebase-jwt-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/google-implicit-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/google-implicit-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/google-implicit-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-implicit-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 | VITE_GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
3 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/google-one-tap-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/google-one-tap-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/google-one-tap-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
18 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/google-one-tap-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 | yarn.lock
10 |
11 | node_modules
12 | dist
13 | dist-ssr
14 | *.local
15 |
16 | # Editor directories and files
17 | .vscode/*
18 | !.vscode/extensions.json
19 | .idea
20 | .DS_Store
21 | *.suo
22 | *.ntvs*
23 | *.njsproj
24 | *.sln
25 | *.sw?
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 | Vite + React + TS
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/src/components/switchNetwork.tsx:
--------------------------------------------------------------------------------
1 | import { useChainId, useSwitchChain } from 'wagmi'
2 |
3 | export function SwitchChain() {
4 | const chainId = useChainId()
5 | const { chains, switchChain, error } = useSwitchChain()
6 |
7 | return (
8 |
9 |
Switch Chain
10 | Connected to {chainId}
11 | {chains.map((chain) => (
12 |
21 | ))}
22 |
23 | {error?.message}
24 |
25 | )
26 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/modal-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/twitch-implicit-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/twitch-implicit-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/twitch-implicit-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/single-connection/twitch-implicit-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/worldcoin-implicit-example/public/favicon.ico
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/worldcoin-implicit-example/public/logo192.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/custom-authentication/single-connection/worldcoin-implicit-example/public/logo512.png
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
2 |
3 | // Dashboard Registration
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
5 |
6 | // Instantiate SDK
7 | const web3AuthOptions: Web3AuthOptions = {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 |
11 | };
12 |
13 | const web3AuthContextConfig = {
14 | web3AuthOptions
15 | };
16 |
17 | export default web3AuthContextConfig;
--------------------------------------------------------------------------------
/custom-authentication/single-connection/worldcoin-implicit-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/lerna.json:
--------------------------------------------------------------------------------
1 | {
2 | "schema": "node_modules/lerna/schemas/lerna-schema.json",
3 | "useNx": false,
4 | "useWorkspaces": false,
5 | "version": "0.0.0",
6 | "packages": [
7 | "**/*"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/mlc_config.json:
--------------------------------------------------------------------------------
1 | {
2 | "httpHeaders": [
3 | {
4 | "urls": [
5 | "https://github.com/",
6 | "https://guides.github.com/",
7 | "https://help.github.com/",
8 | "https://docs.github.com/",
9 | "https://dashboard.pimlico.io/"
10 | ],
11 | "headers": {
12 | "Accept-Encoding": "zstd, br, gzip, deflate"
13 | }
14 | }
15 | ],
16 | "replacementPatterns": [
17 | {
18 | "pattern": "^/",
19 | "replacement": "https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/"
20 | }
21 | ]
22 | }
--------------------------------------------------------------------------------
/other/algorand-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/algorand-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/algorand-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 | Vite + React + TS
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/other/algorand-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/algorand-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/algorand-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/algorand-example/public/logo192.png
--------------------------------------------------------------------------------
/other/algorand-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/algorand-example/public/logo512.png
--------------------------------------------------------------------------------
/other/algorand-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/algorand-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/algorand-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/algorand-example/src/main.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/algorand-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/algorand-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/algorand-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/aptos-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/aptos-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/aptos-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/aptos-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/aptos-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/aptos-example/public/logo192.png
--------------------------------------------------------------------------------
/other/aptos-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/aptos-example/public/logo512.png
--------------------------------------------------------------------------------
/other/aptos-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/aptos-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/aptos-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/aptos-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/aptos-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/aptos-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/aptos-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/bitcoin-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/bitcoin-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/bitcoin-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/other/bitcoin-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/bitcoin-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/bitcoin-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/bitcoin-example/public/logo192.png
--------------------------------------------------------------------------------
/other/bitcoin-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/bitcoin-example/public/logo512.png
--------------------------------------------------------------------------------
/other/bitcoin-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/bitcoin-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/bitcoin-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/bitcoin-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/bitcoin-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/bitcoin-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/bitcoin-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/cosmos-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/cosmos-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
25 | .idea/
26 |
--------------------------------------------------------------------------------
/other/cosmos-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/cosmos-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/cosmos-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/cosmos-example/public/logo192.png
--------------------------------------------------------------------------------
/other/cosmos-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/cosmos-example/public/logo512.png
--------------------------------------------------------------------------------
/other/cosmos-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/cosmos-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/cosmos-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/cosmos-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/cosmos-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/cosmos-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/cosmos-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/multi-chain-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/multi-chain-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/multi-chain-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/multi-chain-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/multi-chain-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/multi-chain-example/public/logo192.png
--------------------------------------------------------------------------------
/other/multi-chain-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/multi-chain-example/public/logo512.png
--------------------------------------------------------------------------------
/other/multi-chain-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/multi-chain-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/multi-chain-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/multi-chain-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/multi-chain-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/multi-chain-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/multi-chain-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/polkadot-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/polkadot-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
25 | yarn.lock
--------------------------------------------------------------------------------
/other/polkadot-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/polkadot-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/polkadot-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/polkadot-example/public/logo192.png
--------------------------------------------------------------------------------
/other/polkadot-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/polkadot-example/public/logo512.png
--------------------------------------------------------------------------------
/other/polkadot-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/polkadot-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/polkadot-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/polkadot-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/polkadot-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/polkadot-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/polkadot-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/polymesh-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/polymesh-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
25 | yarn.lock
--------------------------------------------------------------------------------
/other/polymesh-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/polymesh-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/polymesh-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/polymesh-example/public/logo192.png
--------------------------------------------------------------------------------
/other/polymesh-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/polymesh-example/public/logo512.png
--------------------------------------------------------------------------------
/other/polymesh-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/polymesh-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/polymesh-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/polymesh-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/polymesh-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/polymesh-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/polymesh-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/server-side-verification-example/.env.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/server-side-verification-example/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "next/core-web-vitals"
3 | }
4 |
--------------------------------------------------------------------------------
/other/server-side-verification-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | /.next/
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 | .pnpm-debug.log*
27 |
28 | # local env files
29 | .env*.local
30 |
31 | # vercel
32 | .vercel
33 |
34 | # typescript
35 | *.tsbuildinfo
36 |
--------------------------------------------------------------------------------
/other/server-side-verification-example/app/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/server-side-verification-example/app/favicon.ico
--------------------------------------------------------------------------------
/other/server-side-verification-example/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/other/server-side-verification-example/components/switchNetwork.tsx:
--------------------------------------------------------------------------------
1 | import { useChainId, useSwitchChain } from 'wagmi'
2 |
3 | export function SwitchChain() {
4 | const chainId = useChainId()
5 | const { chains, switchChain, error } = useSwitchChain()
6 |
7 | return (
8 |
9 |
Switch Chain
10 | Connected to {chainId}
11 | {chains.map((chain) => (
12 |
21 | ))}
22 |
23 | {error?.message}
24 |
25 | )
26 | }
--------------------------------------------------------------------------------
/other/server-side-verification-example/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/basic-features/typescript for more information.
6 |
--------------------------------------------------------------------------------
/other/server-side-verification-example/public/vercel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/other/sign-protocol-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/sign-protocol-example/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/other/sign-protocol-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
11 |
12 |
13 |
14 | Vite + React + TS
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/other/sign-protocol-example/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/other/sign-protocol-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
--------------------------------------------------------------------------------
/other/sign-protocol-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/sign-protocol-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/sign-protocol-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | import react from "@vitejs/plugin-react";
2 | import { defineConfig } from "vite";
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
8 | // resolve: {
9 | // alias: {
10 | // crypto: "crypto-browserify",
11 | // assert: "assert",
12 | // http: "stream-http",
13 | // https: "https-browserify",
14 | // url: "url",
15 | // zlib: "browserify-zlib",
16 | // stream: "stream-browserify",
17 | // },
18 | // },
19 | define: {
20 | global: "globalThis",
21 | },
22 | });
--------------------------------------------------------------------------------
/other/smart-account-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/smart-account-example/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/other/smart-account-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 | Vite + React + TS
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/other/smart-account-example/src/components/Balance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data: default_ } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
13 |
Balance: {default_?.value !== undefined ? `${formatUnits(default_.value, default_.decimals)} ${default_.symbol}` : 'Loading...'}
14 |
15 | )
16 | }
--------------------------------------------------------------------------------
/other/smart-account-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/smart-account-example/src/main.tsx:
--------------------------------------------------------------------------------
1 | import { StrictMode } from 'react'
2 | import { createRoot } from 'react-dom/client'
3 | import App from './App'
4 | import './index.css'
5 | import { AppProvider } from './provider'
6 |
7 | createRoot(document.getElementById('root')!).render(
8 |
9 |
10 |
11 |
12 | ,
13 | )
--------------------------------------------------------------------------------
/other/smart-account-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/smart-account-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/smart-account-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/sui-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/sui-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/sui-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/sui-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/sui-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/sui-example/public/logo192.png
--------------------------------------------------------------------------------
/other/sui-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/sui-example/public/logo512.png
--------------------------------------------------------------------------------
/other/sui-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/sui-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/sui-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/sui-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/sui-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/sui-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/sui-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/tezos-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/tezos-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/tezos-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/tezos-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/tezos-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/tezos-example/public/logo192.png
--------------------------------------------------------------------------------
/other/tezos-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/tezos-example/public/logo512.png
--------------------------------------------------------------------------------
/other/tezos-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/tezos-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/tezos-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/tezos-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/tezos-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/tezos-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/tezos-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/ton-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/ton-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
25 | .idea/
26 |
--------------------------------------------------------------------------------
/other/ton-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/ton-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/ton-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/ton-example/public/logo192.png
--------------------------------------------------------------------------------
/other/ton-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/ton-example/public/logo512.png
--------------------------------------------------------------------------------
/other/ton-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/ton-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/ton-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/ton-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/ton-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/ton-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/ton-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/tron-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/tron-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/tron-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/tron-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/tron-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/tron-example/public/logo192.png
--------------------------------------------------------------------------------
/other/tron-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/tron-example/public/logo512.png
--------------------------------------------------------------------------------
/other/tron-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/tron-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/tron-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/tron-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/tron-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/tron-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/tron-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/xmtp-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/xmtp-example/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 | yarn.lock
10 |
11 | node_modules
12 | dist
13 | dist-ssr
14 | *.local
15 |
16 | # Editor directories and files
17 | .vscode/*
18 | !.vscode/extensions.json
19 | .idea
20 | .DS_Store
21 | *.suo
22 | *.ntvs*
23 | *.njsproj
24 | *.sln
25 | *.sw?
26 |
--------------------------------------------------------------------------------
/other/xmtp-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 | Vite + React + TS
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/other/xmtp-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/xmtp-example/src/main.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import React from "react";
4 | import ReactDOM from "react-dom/client";
5 | // IMP START - Setup Web3Auth Provider
6 | import { Web3AuthProvider } from "@web3auth/modal/react";
7 | import web3AuthContextConfig from "./web3authContext";
8 | // IMP END - Setup Web3Auth Provider
9 |
10 | import App from "./App";
11 |
12 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
13 | // IMP START - Setup Web3Auth Provider
14 |
15 |
16 |
17 | // IMP END - Setup Web3Auth Provider
18 | );
19 |
--------------------------------------------------------------------------------
/other/xmtp-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/xmtp-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/xmtp-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/other/xrpl-example/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/other/xrpl-example/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/other/xrpl-example/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/xrpl-example/public/favicon.ico
--------------------------------------------------------------------------------
/other/xrpl-example/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/xrpl-example/public/logo192.png
--------------------------------------------------------------------------------
/other/xrpl-example/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/other/xrpl-example/public/logo512.png
--------------------------------------------------------------------------------
/other/xrpl-example/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/other/xrpl-example/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/other/xrpl-example/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/other/xrpl-example/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/other/xrpl-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/other/xrpl-example/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/other/xrpl-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "root",
3 | "private": true,
4 | "scripts": {
5 | "update-web3auth": "lerna exec --concurrency 1 -- 'ncu -u @web3auth/* && npm install'",
6 | "update-web3auth-alpha": "lerna exec --concurrency 1 -- 'ncu -u @web3auth/* --target @next'",
7 | "install-all": "lerna exec --concurrency 1 -- 'npm install'",
8 | "build-all": "lerna exec --concurrency 1 -- 'npm run build'",
9 | "set-client-id": "node set-client-id.js"
10 | },
11 | "devDependencies": {
12 | "lerna": "^6.4.1",
13 | "npm-check-updates": "^16.7.4"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see https://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.ts]
12 | quote_type = single
13 |
14 | [*.md]
15 | max_line_length = off
16 | trim_trailing_whitespace = false
17 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3 | "recommendations": ["angular.ng-template"]
4 | }
5 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3 | "version": "0.2.0",
4 | "configurations": [
5 | {
6 | "name": "ng serve",
7 | "type": "pwa-chrome",
8 | "request": "launch",
9 | "preLaunchTask": "npm: start",
10 | "url": "http://localhost:4200/"
11 | },
12 | {
13 | "name": "ng test",
14 | "type": "chrome",
15 | "request": "launch",
16 | "preLaunchTask": "npm: test",
17 | "url": "http://localhost:9876/debug.html"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from "@angular/core";
2 | import { BrowserModule } from "@angular/platform-browser";
3 |
4 | import { AppComponent } from "./app.component";
5 |
6 | @NgModule({
7 | declarations: [AppComponent],
8 | imports: [BrowserModule],
9 | providers: [],
10 | bootstrap: [AppComponent],
11 | })
12 | export class AppModule {}
13 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/src/assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/quick-starts/angular-quick-start/src/assets/.gitkeep
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/quick-starts/angular-quick-start/src/favicon.ico
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AngularWeb3authModal
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/src/main.ts:
--------------------------------------------------------------------------------
1 | import { enableProdMode } from "@angular/core";
2 | import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
3 |
4 | import { AppModule } from "./app/app.module";
5 | import { environment } from "./environments/environment";
6 |
7 | if (environment.production) {
8 | enableProdMode();
9 | }
10 |
11 | platformBrowserDynamic()
12 | .bootstrapModule(AppModule)
13 | // eslint-disable-next-line no-console
14 | .catch((err) => console.error(err));
15 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/src/polyfills.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable @typescript-eslint/no-var-requires */
2 | import "zone.js"; // Included with Angular CLI.
3 |
4 | // IMP START - Bundler Issues
5 | (window as any).global = window;
6 | global.Buffer = global.Buffer || require("buffer").Buffer;
7 | global.process = global.process || require("process");
8 | // IMP END - Bundler Issues
9 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/src/test.ts:
--------------------------------------------------------------------------------
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2 |
3 | import "zone.js/testing";
4 |
5 | import { getTestBed } from "@angular/core/testing";
6 | import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from "@angular/platform-browser-dynamic/testing";
7 |
8 | // First, initialize the Angular testing environment.
9 | getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
10 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/app",
6 | "types": []
7 | },
8 | "files": [
9 | "src/main.ts",
10 | "src/polyfills.ts"
11 | ],
12 | "include": [
13 | "src/**/*.d.ts"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/quick-starts/angular-quick-start/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */
2 | {
3 | "extends": "./tsconfig.json",
4 | "compilerOptions": {
5 | "outDir": "./out-tsc/spec",
6 | "types": [
7 | "jasmine"
8 | ]
9 | },
10 | "files": [
11 | "src/test.ts",
12 | "src/polyfills.ts"
13 | ],
14 | "include": [
15 | "src/**/*.spec.ts",
16 | "src/**/*.d.ts"
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/.env.example:
--------------------------------------------------------------------------------
1 | NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "next/core-web-vitals"
3 | }
4 |
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | /.next/
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 | .pnpm-debug.log*
27 |
28 | # local env files
29 | .env*.local
30 |
31 | # vercel
32 | .vercel
33 |
34 | # typescript
35 | *.tsbuildinfo
36 |
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/app/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/quick-starts/nextjs-quick-start/app/favicon.ico
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/app/page.tsx:
--------------------------------------------------------------------------------
1 | "use client";
2 |
3 | import React from "react";
4 | import App from "../components/App";
5 |
6 | export default function Home() {
7 | return ;
8 | }
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/components/wagmi/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/components/wagmi/switchNetwork.tsx:
--------------------------------------------------------------------------------
1 | import { useChainId, useSwitchChain } from 'wagmi'
2 |
3 | export function SwitchChain() {
4 | const chainId = useChainId()
5 | const { chains, switchChain, error } = useSwitchChain()
6 |
7 | return (
8 |
9 |
Switch Chain
10 | Connected to {chainId}
11 | {chains.map((chain) => (
12 |
21 | ))}
22 |
23 | {error?.message}
24 |
25 | )
26 | }
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
6 |
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/next.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('next').NextConfig} */
2 | const nextConfig = {
3 | reactStrictMode: true,
4 | // swcMinify: true,
5 | }
6 |
7 | module.exports = nextConfig
8 |
--------------------------------------------------------------------------------
/quick-starts/nextjs-quick-start/public/vercel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 | yarn.lock
10 |
11 | node_modules
12 | dist
13 | dist-ssr
14 | *.local
15 |
16 | # Editor directories and files
17 | .vscode/*
18 | !.vscode/extensions.json
19 | .idea
20 | .DS_Store
21 | *.suo
22 | *.ntvs*
23 | *.njsproj
24 | *.sln
25 | *.sw?
26 |
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
15 | Vite + React + TS
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/src/components/getBalance.tsx:
--------------------------------------------------------------------------------
1 | import { useAccount, useBalance } from "wagmi";
2 | import { formatUnits } from "viem";
3 |
4 | export function Balance() {
5 | const { address } = useAccount()
6 |
7 | const { data, isLoading, error } = useBalance({ address })
8 |
9 | return (
10 |
11 |
Balance
12 |
{data?.value !== undefined && `${formatUnits(data.value, data.decimals)} ${data.symbol}`} {isLoading && 'Loading...'} {error && 'Error: ' + error.message}
13 |
14 | )
15 | }
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/src/components/switchNetwork.tsx:
--------------------------------------------------------------------------------
1 | import { useChainId, useSwitchChain } from 'wagmi'
2 |
3 | export function SwitchChain() {
4 | const chainId = useChainId()
5 | const { chains, switchChain, error } = useSwitchChain()
6 |
7 | return (
8 |
9 |
Switch Chain
10 | Connected to {chainId}
11 | {chains.map((chain) => (
12 |
21 | ))}
22 |
23 | {error?.message}
24 |
25 | )
26 | }
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/quick-starts/react-quick-start/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 | yarn.lock
10 |
11 | node_modules
12 | dist
13 | dist-ssr
14 | *.local
15 |
16 | # Editor directories and files
17 | .vscode/*
18 | !.vscode/extensions.json
19 | .idea
20 | .DS_Store
21 | *.suo
22 | *.ntvs*
23 | *.njsproj
24 | *.sln
25 | *.sw?
26 |
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 | Vite + React + TS
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/src/main.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import ReactDOM from "react-dom/client";
4 | // IMP START - Setup Web3Auth Provider
5 | import { Web3AuthProvider } from "@web3auth/modal/react";
6 | import web3AuthContextConfig from "./web3authContext";
7 | // IMP END - Setup Web3Auth Provider
8 |
9 | import App from "./App";
10 |
11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12 | // IMP START - Setup Web3Auth Provider
13 |
14 |
15 |
16 | // IMP END - Setup Web3Auth Provider
17 | );
18 |
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/quick-starts/react-solana-quick-start/vite.config.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
--------------------------------------------------------------------------------
/quick-starts/vanillajs-quick-start/.env.example:
--------------------------------------------------------------------------------
1 | WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/quick-starts/vanillajs-quick-start/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vanillajs-quick-start",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "start": "http-server ."
7 | },
8 | "dependencies": {
9 | "@web3auth/auth-adapter": "^9.7.0",
10 | "http-server": "^14.1.1"
11 | },
12 | "devDependencies": {
13 | "empty-module": "^0.0.2",
14 | "zlib-browserify": "^0.0.3"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/.env.example:
--------------------------------------------------------------------------------
1 | VUE_APP_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true,
5 | },
6 | extends: [
7 | "plugin:vue/vue3-essential",
8 | "eslint:recommended",
9 | "@vue/typescript/recommended",
10 | "plugin:prettier/recommended",
11 | ],
12 | parserOptions: {
13 | ecmaVersion: 2020,
14 | },
15 | rules: {
16 | "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
17 | "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ["@vue/cli-plugin-babel/preset"],
3 | plugins: ["@babel/plugin-transform-private-methods"],
4 | };
5 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/quick-starts/vue-quick-start/public/favicon.ico
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/quick-starts/vue-quick-start/src/assets/logo.png
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/src/main.ts:
--------------------------------------------------------------------------------
1 | // IMP START - Setup Wagmi Provider
2 | import { VueQueryPlugin } from "@tanstack/vue-query";
3 | // IMP END - Setup Wagmi Provider
4 | import { createApp } from "vue";
5 | import App from "./App.vue";
6 | import "./style.css";
7 |
8 | // IMP START - Setup Wagmi Provider
9 | createApp(App).use(VueQueryPlugin).mount("#app");
10 | // IMP END - Setup Wagmi Provider
11 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/src/shims-vue.d.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | declare module '*.vue' {
3 | import type { DefineComponent } from 'vue'
4 | const component: DefineComponent<{}, {}, any>
5 | export default component
6 | }
7 |
--------------------------------------------------------------------------------
/quick-starts/vue-quick-start/src/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | // IMP START - Quick Start
2 | import { WEB3AUTH_NETWORK } from "@web3auth/modal";
3 | import { type Web3AuthContextConfig } from "@web3auth/modal/vue";
4 | // IMP END - Quick Start
5 |
6 | // IMP START - Dashboard Registration
7 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
8 | // IMP END - Dashboard Registration
9 |
10 | // IMP START - Config
11 | const web3AuthContextConfig: Web3AuthContextConfig = {
12 | web3AuthOptions: {
13 | clientId,
14 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
15 | }
16 | };
17 | // IMP END - Config
18 |
19 | export default web3AuthContextConfig;
20 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 | not ie 11
5 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/.env.example:
--------------------------------------------------------------------------------
1 | VUE_APP_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true,
5 | },
6 | extends: [
7 | "plugin:vue/vue3-essential",
8 | "eslint:recommended",
9 | "@vue/typescript/recommended",
10 | "plugin:prettier/recommended",
11 | ],
12 | parserOptions: {
13 | ecmaVersion: 2020,
14 | },
15 | rules: {
16 | "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
17 | "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ["@vue/cli-plugin-babel/preset"],
3 | plugins: ["@babel/plugin-transform-private-methods"],
4 | };
5 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/quick-starts/vue-solana-quick-start/public/favicon.ico
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | <%= htmlWebpackPlugin.options.title %>
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/src/App.vue:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/quick-starts/vue-solana-quick-start/src/assets/logo.png
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/src/main.ts:
--------------------------------------------------------------------------------
1 | import { createApp } from "vue";
2 | import App from "./App.vue";
3 | import "./style.css";
4 |
5 | createApp(App).mount("#app");
6 |
--------------------------------------------------------------------------------
/quick-starts/vue-solana-quick-start/src/shims-vue.d.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | declare module '*.vue' {
3 | import type { DefineComponent } from 'vue'
4 | const component: DefineComponent<{}, {}, any>
5 | export default component
6 | }
7 |
--------------------------------------------------------------------------------
/react-playground/.env.example:
--------------------------------------------------------------------------------
1 | VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID
2 |
--------------------------------------------------------------------------------
/react-playground/.eslintignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # testing
7 | /coverage
8 |
9 | #production
10 | /build
11 |
12 | # misc
13 | .DS_Store
14 | .env.local
15 | .env.development.local
16 | .env.test.local
17 | .env.production.local
18 |
19 | npm-debug.log*
20 | yarn-debug.log*
21 | yarn-error.log*
22 | examples/
23 | dist/
24 | types/
25 | **/*.d.ts
--------------------------------------------------------------------------------
/react-playground/.prettierignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # testing
7 | /coverage
8 |
9 | #production
10 | /build
11 |
12 | # misc
13 | .DS_Store
14 | .env.local
15 | .env.development.local
16 | .env.test.local
17 | .env.production.local
18 |
19 | npm-debug.log*
20 | yarn-debug.log*
21 | yarn-error.log*
22 | /packages/*/types
--------------------------------------------------------------------------------
/react-playground/.prettierrc.yaml:
--------------------------------------------------------------------------------
1 | # .prettierrc or .prettierrc.yaml
2 | printWidth: 150
3 | singleQuote: false
4 | semi: true
5 | trailingComma: es5
--------------------------------------------------------------------------------
/react-playground/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/react-playground/favicon-16x16.png
--------------------------------------------------------------------------------
/react-playground/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/react-playground/favicon-32x32.png
--------------------------------------------------------------------------------
/react-playground/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/react-playground/favicon.ico
--------------------------------------------------------------------------------
/react-playground/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | };
7 |
--------------------------------------------------------------------------------
/react-playground/public/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/react-playground/public/favicon-16x16.png
--------------------------------------------------------------------------------
/react-playground/public/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/react-playground/public/favicon-32x32.png
--------------------------------------------------------------------------------
/react-playground/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Web3Auth/web3auth-examples/a90be9b144d498043874d118e1d0bdee5d0af290/react-playground/public/favicon.ico
--------------------------------------------------------------------------------
/react-playground/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "PnP Playground",
3 | "name": "PnP Playground - Web3Auth",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "favicon-32x32.png",
12 | "type": "image/png",
13 | "sizes": "32x32"
14 | },
15 | {
16 | "src": "favicon-16x16.png",
17 | "type": "image/png",
18 | "sizes": "16x16"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/react-playground/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/react-playground/src/config/ABI.json:
--------------------------------------------------------------------------------
1 | [
2 | { "inputs": [{ "internalType": "string", "name": "initMessage", "type": "string" }], "stateMutability": "nonpayable", "type": "constructor" },
3 | { "inputs": [], "name": "message", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" },
4 | {
5 | "inputs": [{ "internalType": "string", "name": "newMessage", "type": "string" }],
6 | "name": "update",
7 | "outputs": [],
8 | "stateMutability": "nonpayable",
9 | "type": "function"
10 | }
11 | ]
--------------------------------------------------------------------------------
/react-playground/src/config/consts.ts:
--------------------------------------------------------------------------------
1 | export const tokenId = "HERE";
2 |
--------------------------------------------------------------------------------
/react-playground/src/index.tsx:
--------------------------------------------------------------------------------
1 | import "./index.css";
2 |
3 | import React from "react";
4 | import ReactDOM from "react-dom/client";
5 |
6 | import App from "./App";
7 |
8 | // Ensure dark mode is enabled
9 | document.documentElement.classList.add('dark');
10 |
11 | const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
12 | root.render(
13 |
14 |
15 |
16 | );
17 |
--------------------------------------------------------------------------------
/react-playground/src/services/web3authContext.tsx:
--------------------------------------------------------------------------------
1 | import { WEB3AUTH_NETWORK } from "@web3auth/modal";
2 | import { Web3AuthContextConfig } from "@web3auth/modal/react";
3 |
4 | const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ";
5 |
6 | const web3AuthContextConfig: Web3AuthContextConfig = {
7 | web3AuthOptions: {
8 | clientId,
9 | web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10 | },
11 | };
12 |
13 | export default web3AuthContextConfig;
14 |
--------------------------------------------------------------------------------
/react-playground/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/react-playground/torus.config.js:
--------------------------------------------------------------------------------
1 | module.exports = require("@toruslabs/config/torus.config");
2 | // TODO: Import this file into packages which need it
--------------------------------------------------------------------------------
/react-playground/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "allowSyntheticDefaultImports": true
7 | },
8 | "include": ["vite.config.ts"]
9 | }
10 |
--------------------------------------------------------------------------------
/react-playground/vite.config.ts:
--------------------------------------------------------------------------------
1 |
2 | import react from "@vitejs/plugin-react";
3 | import { defineConfig } from "vite";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [react()],
8 | // alias are only to be added when absolutely necessary, these modules are already present in the browser environment
9 | // resolve: {
10 | // alias: {
11 | // crypto: "crypto-browserify",
12 | // assert: "assert",
13 | // http: "stream-http",
14 | // https: "https-browserify",
15 | // url: "url",
16 | // zlib: "browserify-zlib",
17 | // stream: "stream-browserify",
18 | // },
19 | // },
20 | define: {
21 | global: "globalThis",
22 | },
23 | });
24 |
--------------------------------------------------------------------------------