Go to file
2023-07-18 15:36:33 +02:00
src/app first commit 2023-07-18 15:36:33 +02:00
.eslintrc.json first commit 2023-07-18 15:36:33 +02:00
.gitignore first commit 2023-07-18 15:36:33 +02:00
jsconfig.json first commit 2023-07-18 15:36:33 +02:00
next.config.js first commit 2023-07-18 15:36:33 +02:00
package-lock.json first commit 2023-07-18 15:36:33 +02:00
package.json first commit 2023-07-18 15:36:33 +02:00
pnpm-lock.yaml first commit 2023-07-18 15:36:33 +02:00
README.md first commit 2023-07-18 15:36:33 +02:00

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

  1. 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
  1. Add environment variables:
NEXT_PUBLIC_ENABLE_TESTNETS='<true or false>'
NEXT_PUBLIC_WC_PROJECT_ID='<Your WalletConnect project ID>'
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

📚 Resources