1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

various bug fixes #92 #84

This commit is contained in:
Kyle Spearrin
2017-02-23 19:31:29 -05:00
parent 9a662a111d
commit df3893722c
4 changed files with 33 additions and 42 deletions

View File

@@ -167,17 +167,6 @@ function initTokenService() {
return d;
};
TokenService.prototype.isTokenExpired = function (offsetSeconds) {
var d = this.getTokenExpirationDate();
offsetSeconds = offsetSeconds || 0;
if (d === null) {
return false;
}
// Token expired?
return !(d.valueOf() > (new Date().valueOf() + (offsetSeconds * 1000)));
};
TokenService.prototype.tokenSecondsRemaining = function (offsetSeconds) {
var d = this.getTokenExpirationDate();
offsetSeconds = offsetSeconds || 0;