authentication-adal-pkg
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -293,4 +293,3 @@ 'use strict'; | ||
var token = authResult.idToken; | ||
var _decodeTokenPayload3 = decodeTokenPayload(token); | ||
var exp = _decodeTokenPayload3.exp; | ||
var exp = new Date(authResult.expiresOn); | ||
storage.set(constants.IN_PROGRESS, false); | ||
@@ -320,13 +319,7 @@ storage.set(constants.TOKEN, token); | ||
var token = authResult.idToken; | ||
if (isValidToken(token)) { | ||
var _decodeTokenPayload3 = decodeTokenPayload(token); | ||
var exp = _decodeTokenPayload3.exp; | ||
storage.set(constants.IN_PROGRESS, false); | ||
storage.set(constants.TOKEN, token); | ||
storage.set(constants.TOKEN_EXPIRATION, exp); | ||
resolve(authResult); | ||
} else { | ||
// When token has expired, acquire new token | ||
acquireTokenAsyncMobile(resolve, reject); | ||
} | ||
var exp = new Date(authResult.expiresOn); | ||
storage.set(constants.IN_PROGRESS, false); | ||
storage.set(constants.TOKEN, token); | ||
storage.set(constants.TOKEN_EXPIRATION, exp); | ||
resolve(authResult); | ||
}, | ||
@@ -333,0 +326,0 @@ function() { |
{ | ||
"name": "authentication-adal-pkg", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "An authentication SDK based on MS ADAL ", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66039
1990