[READ-ONLY] Mirror of https://github.com/sandros94/unjwt. A collection of JWT utilities based on the Web Crypto API, in a single zero-depend unjwt.s94.dev
auth browser decrypt edge encrypt jose jwe jwk jws jwt security serverless session sign verify webcrypto
README.md

unjwt example #

A minimal h3 app with a JWE refresh-token session and a JWS access-token session that refreshes itself from the former on expiry. Install with any package manager, then:

npm run dev
curl -X POST localhost:3000/login -H 'content-type: application/json' -d '{"username":"alice","password":"x"}' -c jar.txt
curl -X POST localhost:3000/login -b jar.txt