1
0
Fork 0

update security checking

refactor/models
Matthew 2019-11-16 20:38:03 -05:00
parent 6f0741b03b
commit 9023ed1112
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

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