Package Exports
- jwt-sha3
- jwt-sha3/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jwt-sha3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jwt-sha3
Easy token generator with KMAC256
Usage:
const JWTSHA3 = require( 'jwt-sha3' ),
generator = new JWTSHA3( 1800, './' ); // Default expiration in seconds and path where to generate .env file with permanent secret key
let message = 'Ciao!'; // Any object
const token = await generator.tokenGenerate( message );
message = generator.tokenVerify( token );