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

thirdweb-example/thirdweb-auth-fiber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This example demonstrates how to use thirdweb Auth with a fiber backend and react frontend.

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

Then run one of the following commands to install the JS dependencies into the client folder:

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

We also need to install the Go dependencies for our backend, which we can do with the following command:

cd server && go get

Next, you need to create a .env file in the server folder and add the ADMIN_PRIVATE_KEY variable to it (similar to how it is in the /server/.env.example file) 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=...

Now, we need to run the frontend and the backend separately.

We can startup our frontend by running the following command in the root of the login-with-next-fiber directory:

make web

Finally, we can startup the backend in a separate terminal window by running the following command:

make server

Now, the demo should be ready to use - and we can navigate to http://localhost:3000 to try it out.

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published