src/app | ||
svelte | ||
.eslintrc.json | ||
.gitignore | ||
jsconfig.json | ||
next.config.js | ||
package-lock.json | ||
package.json | ||
pnpm-lock.yaml | ||
README.md |
signAndSaveAuthMessage
example
This is a Next.js example that demonstrates how to use the signAndSaveAuthMessage
function from the @lit-protocol/auth-browser
package with a Connect Wallet modal like RainbowKit.
Note: This example uses prior versions of RainbowKit and wagmi
that are compatible with ethers
.
💻 Getting Started
- Clone this repo and download dependencies:
git clone git@github.com:LIT-Protocol/sdk-examples.git
cd connect-wallet-authsig
npm install
# or
yarn
# or
pnpm
- Add environment variables:
NEXT_PUBLIC_ENABLE_TESTNETS='<true or false>'
NEXT_PUBLIC_WC_PROJECT_ID='<Your WalletConnect project ID>'
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.