https://github.com/lit-protocol/lit-minimal-jwt-example
https://github.com/lit-protocol/lit-minimal-jwt-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lit-protocol/lit-minimal-jwt-example
- Owner: LIT-Protocol
- Created: 2021-08-04T03:57:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T06:37:00.000Z (almost 5 years ago)
- Last Synced: 2025-04-19T19:53:29.078Z (about 1 year ago)
- Language: HTML
- Size: 17.6 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LIT Protocol Minimal JWT Example
*This example is powered by the lit-js-sdk located here: https://github.com/LIT-Protocol/lit-js-sdk*
This repo is a minimal example to:
1. Mint an NFT (client side)
2. Provision access to a resource (a web url) behind ownership of that NFT (client side)
3. Request a signed JWT from the Lit network to access that resource (client side)
4. Verify the signature on that JWT (server side)
The server is inside the file server.js. The client is inside index.html
## Running
To run this example, first install the packages by running "yarn install". Then, you can serve it by running "yarn start" and then visit http://127.0.0.1:3000/ to try the example.
## Demo video
A demo video is located here: https://youtu.be/EaQXXLmylog