@nitra/jwt
v3.7.2
Published
jwt create verify
Downloads
348
Readme
jwt
Create token
add .env.test.local
// Set environments for prod: PRIVATE_KEY, KID
import create from '@nitra/jwt/create'
await create(claims)
Verify
// Set environments for prod: KID
import verify from '@nitra/jwt/verify'
await verify(token)
Do not validate the expiration of the token:
// Set environments for prod: KID
import verify from '@nitra/jwt/verify'
await verify(token, { ignoreExpiration: true })