forked from engineering/cloudservices
update security checking
parent
6f0741b03b
commit
9023ed1112
|
@ -36,7 +36,7 @@ export default class Security {
|
||||||
verify.update(bearer);
|
verify.update(bearer);
|
||||||
verify.end();
|
verify.end();
|
||||||
try {
|
try {
|
||||||
return verify.verify(this.keyPair.publicKey, account.bearerSignature, 'base64');
|
return verify.verify(this.keyPair.publicKey, account.bearerSignature, 'hex');
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue