fix(core): update

This commit is contained in:
2019-10-01 20:03:36 +02:00
parent 14cf8c3b6c
commit 0753fae234
6 changed files with 48 additions and 71 deletions

View File

@ -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);
}
}
}

View File

@ -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 };