Arquivei - JWT Generator
JTW mock generator for all of Arquivei BFF projects.
Table of Contents
Installation
npm i -D -E @arquivei/jwt-generator
Dependencies
This package has a required peerDependencies
listing jwt-authorization
npm i -E @arquivei/jwt-authorization@1.1.3
Usage
Add a script in your package.json
file:
// package.json
{
...,
"scripts": {
...,
"generate:jwt": "@arquivei/jwt-generator",
},
}
Or import as module:
import generateJWT from '@arquivei/jwt-generator';
const authToken = generateJWT();