Skip to content

An example web3 dapp that uses SIWS package to authenticate users.

Notifications You must be signed in to change notification settings

TalismanSociety/siws-demo

Repository files navigation


siws logo

Sign-In with Substrate


SIWS Example

Sign-In with Substrate Example dApp

This is an example full stack Next.JS dApp for implementing Sign-In with Substrate. It can be used as a reference for adding authentication to your dApp using just Substrate wallets, no third party providers needed!

The example dApp has a /api/protected route that only authenticated users can access. From the UI, you will see how the sign in process works after connecting your wallet. After that you may use the /api/protected to generate random text! In reality, you will issue a JWT token with some custom claims, that will later be used to query data from your database in your protected APIs.

Running the example dApp

  1. Install dependencies
$ npm run install
  1. Start the dev server
$ npm run dev
  1. Visit the example app at https://localhost:3000

Documentation

Check out our full guide on how to implement SIWS into your dapp!

Support

About

An example web3 dapp that uses SIWS package to authenticate users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published