@palante/palante-jwt
v1.0.2
Published
jwt operations for palante
Downloads
6
Readme
Palante JWT Library
Utilizes auth0/jsonwebtoken library.
Installation
npm i @palante/palante-jwt --save
Use
import {sign, verify} from '@palante/palante-jwt';
sign(objToSign, secret, expireInSeconds, (token) =>
// callback logic here.
);
verify(token, secret, (err, decoded) =>
// callback logic here
);
Note
the option expiresIn
is always called.