Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aquariuslt/w3m-oneclick-siew-example
https://github.com/aquariuslt/w3m-oneclick-siew-example
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aquariuslt/w3m-oneclick-siew-example
- Owner: aquariuslt
- Created: 2024-06-26T18:09:10.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T19:41:09.000Z (4 months ago)
- Last Synced: 2024-06-29T20:43:14.805Z (4 months ago)
- Language: TypeScript
- Size: 301 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SIWE One-Click Auth Example
This is a monorepo example of a SIWE application with one-click authentication refer to
[Web3Modal - React SIWE One-Click Auth](https://docs.walletconnect.com/appkit/react/core/siwe).Client: create from `create-next-app` with tailwind css, wagmi, @web3modal
Server: create from `@nestjs/cli` with jwt sign flow> It's non-production ready and only for educational purposes.
> Use optimism-sepolia as dev network## Getting Started
### Install dependencies
```bash
cd /path/to/project
yarn install
```### Start the client
> Pre-requisite: Make sure you have your own WALLETCONNECT_PROJECT_ID
> `cp .env.example .env` and update the `NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID````bash
cd apps/client
yarn dev
```client will run at http://localhost:3000
### Start the server
> Pre-requisite:
> `cp .env.example .env` and update the `JWT_SECRET` (e.g. 123456)```bash
cd apps/server
yarn start
```server will run at http://localhost:3001
### Test Flow
open browser at http://localhost:3000
> You can check console log to see how siwe related functions are called