Skip to content

256hax/sign-in-with-solana-api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

Express x JWT x Solana for sign in API server minimal example.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors