An open API service indexing awesome lists of open source software.

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

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