mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
cache _decodedToken
This commit is contained in:
@@ -150,7 +150,8 @@ function initTokenService() {
|
|||||||
throw 'Cannot decode the token';
|
throw 'Cannot decode the token';
|
||||||
}
|
}
|
||||||
|
|
||||||
return JSON.parse(decoded);
|
_decodedToken = JSON.parse(decoded);
|
||||||
|
return _decodedToken;
|
||||||
};
|
};
|
||||||
|
|
||||||
TokenService.prototype.getTokenExpirationDate = function () {
|
TokenService.prototype.getTokenExpirationDate = function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user