@nitra/jwt

3.7.0 • Public • Published

jwt

Mega-Linter

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 })

Readme

Keywords

Package Sidebar

Install

npm i @nitra/jwt

Weekly Downloads

111

Version

3.7.0

License

ISC

Unpacked Size

6.06 kB

Total Files

6

Last publish

Collaborators

  • vitaliytv