fix(core): update
This commit is contained in:
@ -13,7 +13,7 @@ export class SmartJwt {
|
||||
public publicKey: plugins.smartcrypto.PublicKey;
|
||||
public privateKey: plugins.smartcrypto.PrivateKey;
|
||||
|
||||
constructor() {};
|
||||
constructor() {}
|
||||
|
||||
/**
|
||||
* creates a JWT
|
||||
@ -41,7 +41,7 @@ export class SmartJwt {
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a public key
|
||||
* sets a public key
|
||||
*/
|
||||
public async setPublicKey(publicKey: plugins.smartcrypto.PublicKey) {
|
||||
this.publicKey = publicKey;
|
||||
@ -65,7 +65,6 @@ export class SmartJwt {
|
||||
this.publicKey = plugins.smartcrypto.PublicKey.fromPemString(jsonKeyPair.publicPem);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* creates a new keypair
|
||||
*/
|
||||
@ -74,4 +73,4 @@ export class SmartJwt {
|
||||
this.setPrivateKey(keypair.privateKey);
|
||||
this.setPublicKey(keypair.publicKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,8 @@
|
||||
// @pushrocks scope
|
||||
import * as smartcrypto from '@pushrocks/smartcrypto';
|
||||
|
||||
export {
|
||||
smartcrypto
|
||||
};
|
||||
export { smartcrypto };
|
||||
|
||||
// thirdparty scope
|
||||
import * as jsonwebtoken from 'jsonwebtoken';
|
||||
export {
|
||||
jsonwebtoken
|
||||
};
|
||||
export { jsonwebtoken };
|
||||
|
Reference in New Issue
Block a user