Skip to content

LIT-Protocol/lit-pkp-auth-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

39 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

๐Ÿ’ป Getting Started

  1. Clone this repo and install dependencies:
git clone [email protected]:LIT-Protocol/pkp-social-auth-example.git

cd pkp-social-auth-example

npm install
  1. Add your Stytch project's project_id and public_token to .env.local:
NEXT_PUBLIC_STYTCH_PROJECT_ID="<Your Stytch Project ID>"
NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN="<Your Stytch Public Token>"

If you're not using Stytch, feel free to comment out the Stytch provider StytchProvider and Stytch component StytchOTP.

  1. Start your development server:
npm run dev
  1. Visit http://localhost:3000 to start playing with the app.

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