Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 552 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 552 Bytes

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.