JWT generator verifier for Node
yarn add @sudoo/jwt
yarn add @sudoo/token # Peer Dependency
# Or
npm install @sudoo/jwt --save
npm install @sudoo/token --save # Peer Dependency
import { JWTCreator } from "@sudoo/jwt";
const creator: JWTCreator = JWTCreator.instantiate("<Private Key>");
const token: string = creator.create({
header: {
foo: 'bar',
},
body: {
foo: 'bar',
},
}); // Signed Token