Skip to content

codeninja819/nestjs-siwe

Repository files navigation

Description

Sign-in With Ethereum (SIWE) example for NestJS.

Installation and build client bundle

$ npm install
$ npm run build:client

Running the app

$ npm run start

Endpoints

  • /api/auth/challenge: generate nonce value to prevent replay attack
  • /api/auth/login: login as SIWE message and signature

Frontend

open http://localhost:3000/ to access the sample page and click the "Ethereum Sign-in" button to login

siwe-frontend.jpg

License

Nest is MIT licensed.

About

Nestjs Sign-in-with-Ethereum Example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published