Coder Social home page Coder Social logo

tai9 / thirdweb-auth-express Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thirdweb-example/thirdweb-auth-express-v4

0.0 0.0 0.0 1.01 MB

Enable wallet-based login with thirdweb Auth & Express

License: Apache License 2.0

JavaScript 0.41% TypeScript 98.61% CSS 0.98%

thirdweb-auth-express's Introduction

Description

  • Authentication
  • Authorization
  • Logging
  • Audit log
  • Proxy
  • TypeORM + Postgresql

DB Diagram

Auth dApp

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.

thirdweb-auth-express's People

Contributors

tai9 avatar adam-maj avatar bankkroll avatar arpu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.