-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from LIT-Protocol/feat/update-mint-relay
feat: support new mint and fetch endpoints
- Loading branch information
Showing
44 changed files
with
5,945 additions
and
7,793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.