1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

b64 to utf8 utils

This commit is contained in:
Kyle Spearrin
2018-04-23 13:45:40 -04:00
parent e5ae1cbb1c
commit 768ab7dd0a
2 changed files with 12 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ export class TokenService implements TokenServiceAbstraction {
throw new Error('JWT must have 3 parts');
}
const decoded = Utils.urlBase64Decode(parts[1]);
const decoded = Utils.fromUrlB64ToUtf8(parts[1]);
if (decoded == null) {
throw new Error('Cannot decode the token');
}