https://github.com/talismansociety/siws-demo
An example web3 dapp that uses SIWS package to authenticate users.
https://github.com/talismansociety/siws-demo
Last synced: 3 months ago
JSON representation
An example web3 dapp that uses SIWS package to authenticate users.
- Host: GitHub
- URL: https://github.com/talismansociety/siws-demo
- Owner: TalismanSociety
- Created: 2023-11-08T08:32:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-31T05:44:20.000Z (over 1 year ago)
- Last Synced: 2024-01-31T07:00:08.272Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://siws.xyz
- Size: 1.18 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sign-In with Substrate

# 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
```bash
$ npm run install
```2. Start the dev server
```bash
$ npm run dev
```3. Visit the example app at `https://localhost:3000`
## Documentation
Check out our [full guide](https://siws-docs.pages.dev/) on how to implement SIWS into your dapp!
## Support
- [Talisman](https://talisman.xyz)
- [Web3 Foundation](https://grants.web3.foundation/)