Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support new mint and fetch endpoints #194

Merged
merged 9 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions apps/demo-pkp-social-auth-next-ts/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
# PKP x Google OAuth Web Example 🪢
# lit-auth-client Web Example 🪢

This is an example web app that shows how you can mint and use programmable key pairs (PKPs) with just Google account. With PKPs, you can build distributed and customizable MPC wallets. Learn more about PKPs [here](https://developer.litprotocol.com/pkp/wallets/intro).

Check out the [live demo](https://pkp-social-auth-example.vercel.app/).
This is an example web app that shows how you can mint and use programmable key pairs (PKPs) with social accounts, one-time passwords, and authenticators using the [@lit-protocol/lit-auth-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-auth-client) library.

## 💻 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
cd apps/demo-pkp-social-auth-next-ts

yarn install
```

2. Start your development server:
1. Add your Stytch project's `project_id` and `public_token` to `.env.local`:

```bash
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`.

3. Start your development server:

```bash
yarn dev
```

3. Visit [http://localhost:3000](http://localhost:3000) to start playing with the app.
4. Visit [http://localhost:3000](http://localhost:3000) to start playing with the app.
Loading
Loading