Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

thirdweb-example/thirdweb-auth-express-v4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This example demonstrates how to use thirdweb Auth with an express backend and react frontend.

To run this project, you need will first need to install the dependencies for the client and express backend with the following commands:

cd client && npm install
cd express && npm install
# or
cd client && yarn install
cd express && yarn install

Next, you need to create a /express/.env file (within the /express) directory 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=...

Then, you can run the project by running the following two commands in separate terminals:

npm run dev
npm run server
# or
yarn dev
yarn server

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 & Express

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published