Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
566a07a6b5 | |||
f3e1703eef |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartjwt",
|
"name": "@pushrocks/smartjwt",
|
||||||
"version": "1.0.9",
|
"version": "1.0.10",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartjwt",
|
"name": "@pushrocks/smartjwt",
|
||||||
"version": "1.0.9",
|
"version": "1.0.10",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a package for handling jwt",
|
"description": "a package for handling jwt",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -73,4 +73,8 @@ export class SmartJwt {
|
|||||||
this.setPrivateKey(keypair.privateKey);
|
this.setPrivateKey(keypair.privateKey);
|
||||||
this.setPublicKey(keypair.publicKey);
|
this.setPublicKey(keypair.publicKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async init() {
|
||||||
|
await this.createNewKeyPair();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user