@pega/auth
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -182,10 +182,13 @@ // This file wraps various calls related to logging in, logging out, etc. | ||
} | ||
/* | ||
// No longer needed (see BUG-861780) | ||
isLoginExpired() { | ||
let bExpired = true; | ||
if (this.loginStart) { | ||
const currTime = Date.now(); | ||
bExpired = currTime - this.loginStart > 60000; | ||
} | ||
return bExpired; | ||
let bExpired = true; | ||
if (this.loginStart) { | ||
const currTime = Date.now(); | ||
bExpired = currTime - this.loginStart > 60000; | ||
} | ||
return bExpired; | ||
} | ||
*/ | ||
/** | ||
@@ -840,6 +843,8 @@ * Clean up any session storage allocated for the user session. | ||
this.authRedirectCallback(window.location.href, redirectDoneCB || cbDefault); | ||
// }); | ||
}); | ||
} | ||
if (!deferLogin && (!this.loginStart || this.isLoginExpired())) { | ||
// Reset the loginStart when page is traversed without ?code argument (user invoked app twice, | ||
// without logging in) (BUG-861780) | ||
this.loginStart = 0; | ||
if (!deferLogin /* && (!this.loginStart || this.isLoginExpired()) */) { | ||
return this.#initialize(false).then(() => { | ||
@@ -856,3 +861,2 @@ this.#updateLoginStatus(); | ||
} | ||
// }); | ||
}); | ||
@@ -859,0 +863,0 @@ } |
{ | ||
"name": "@pega/auth", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Pega OAuth 2.0 Client Library (supports Infinity and Launchpad).", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2191
198650