2 Commits

Author SHA1 Message Date
96287ed710 1.0.12 2021-02-09 10:30:00 +00:00
ceb48fd45e fix(core): update 2021-02-09 10:30:00 +00:00
3 changed files with 5 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartjwt",
"version": "1.0.11",
"version": "1.0.12",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartjwt",
"version": "1.0.11",
"version": "1.0.12",
"private": false,
"description": "a package for handling jwt",
"main": "dist_ts/index.js",

View File

@ -21,6 +21,8 @@ tap.test('should create a new jwt', async () => {
tap.test('should verify a jwt', async () => {
const data = await smartjwtInstance.verifyJWTAndGetData(testJwt);
// tslint:disable-next-line: no-unused-expression
expect(data).to.not.be.null;
console.log(data);
console.log(smartjwtInstance.publicKey.toPemString());
});
@ -44,6 +46,6 @@ tap.test('should verify a jwt on another instance', async () => {
secondSmartJwtInstance.setPublicPemKeyForVerification(smartjwtInstance.publicKey.toPemString());
const result = secondSmartJwtInstance.verifyJWTAndGetData(testJwt);
console.log(result);
})
});
tap.start();