Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.83 KB

File metadata and controls

41 lines (33 loc) · 1.83 KB

Sign In with Solana API Server

Express x JWT x Sign In with Solana API server minimal example.
For experiment purpose only. I highly recommend to do security vulnerability assesments before launch.

System Process and Program Scope

System Process

Tech

Run

Run API Server

% npm i
% npm run dev

Request URL

Import Postman request.

Then request API using Postman:

  1. http://localhost:4100/auths/create-message
  2. http://localhost:4100/auths/sign-message
  3. http://localhost:4100/auths/verify-signature
  4. http://localhost:4100/auths/sign-in
  5. http://localhost:4100/auths/verify-jwt

Note

Phantom make new standard Sign In With Solana (SIWS).

TODO

Another Way

If you need to full-stack, use Blocksmith-Labs/solana-next-auth (build with NextAuth.js and Next.js).