GitHub - kquirapas/thirdweb-auth-next: Enable wallet-based login with thirdweb Auth & Next · GitHub
Skip to content

kquirapas/thirdweb-auth-next

 
 

Folders and files

Repository files navigation

Getting Started

This example demonstrates how to use thirdweb Auth with NextJS.

To run the project, first clone this repository, and then run one of the following commands to install the dependencies:

npm install
# or
yarn install

Next, you need to create a .env.local file and add the ADMIN_PRIVATE_KEY variable to it with the private key of the wallet you want to use as the admin wallet to generate and verify payloads. Your file should use something like the following:

ADMIN_PRIVATE_KEY=...

Finally, you can run the project with one of the following commands:

npm run dev
# or
yarn dev

Now, you can navigate to http://localhost:3000 to visit the client side page where you can connect a wallet, sign-in with ethereum and view the payload, and use the payload to authenticate with the backend.

Learn More

To learn more about thirdweb, take a look at the following resources:

You can check out the thirdweb GitHub organization - your feedback and contributions are welcome!

Join our Discord!

For any questions, suggestions, join our discord at https://discord.gg/thirdweb.

About

Enable wallet-based login with thirdweb Auth & Next

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • TypeScript 94.8%
  • JavaScript 4.5%
  • Shell 0.7%