https://github.com/lit-protocol/lit-pkp-auth-demo
Programmable MPC Wallets with Flexible Auth 🔑
https://github.com/lit-protocol/lit-pkp-auth-demo
Last synced: about 1 year ago
JSON representation
Programmable MPC Wallets with Flexible Auth 🔑
- Host: GitHub
- URL: https://github.com/lit-protocol/lit-pkp-auth-demo
- Owner: LIT-Protocol
- Created: 2023-03-25T00:57:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T20:12:14.000Z (about 1 year ago)
- Last Synced: 2025-04-12T00:06:58.441Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://lit-pkp-auth-demo.vercel.app
- Size: 120 MB
- Stars: 29
- Watchers: 3
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Programmable MPC Wallets with Flexible Auth 🔑
This is an example web app that shows how you can mint and use Lit's programmable MPC wallets with social accounts, one-time passwords, and passkeys using [Lit JS SDK](https://developer.litprotocol.com/v2/).
## 💻 Getting Started
1. Clone this repo and install dependencies:
```bash
git clone git@github.com:LIT-Protocol/pkp-social-auth-example.git
cd pkp-social-auth-example
npm install
```
2. Add your Stytch project's `project_id` and `public_token` to `.env.local`:
```bash
NEXT_PUBLIC_STYTCH_PROJECT_ID=""
NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN=""
```
If you're not using Stytch, feel free to comment out the Stytch provider `StytchProvider` and Stytch component `StytchOTP`.
3. Start your development server:
```bash
npm run dev
```
4. Visit [http://localhost:3000](http://localhost:3000) to start playing with the app.
5. Optional env variables
By default, it uses the `datil-dev` network. If you want to change the network, you can modify the environment variable:
```
NEXT_PUBLIC_LIT_NETWORK=datil-dev
```