@pega/auth
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -442,3 +442,13 @@ export class PegaAuth { | ||
clearInterval(checkWindowClosed); | ||
myWindow.close(); | ||
try { | ||
if (myWindow) { | ||
myWindow.close(); | ||
myWindow = null; | ||
} | ||
} | ||
catch (e) { | ||
// keep going and process code or error even though issue closing popup | ||
// eslint-disable-next-line no-console | ||
console.warn(`Error closing window: ${e}`); | ||
} | ||
} | ||
@@ -445,0 +455,0 @@ } |
@@ -10,3 +10,3 @@ // This script file is retrieved by framework components looking to implement a | ||
// and directly invokes it (and is used by the authDone.html unauthenticated endpoint used by Web Embed). | ||
// IMPORTANT: Any mods to authDone function must be made within authCode.js as well. | ||
// IMPORTANT: Any mods to authDone function must be made within authDone.js as well. | ||
export const authDone = () => { | ||
@@ -13,0 +13,0 @@ // For enabling logging via debugger (do not let it be a const...then can't change in debugger) |
@@ -12,3 +12,3 @@ "use strict"; | ||
// a dynamic route that would be specified as a redirect uri. | ||
// IMPORTANT: Any mods to authDone function must be made within authCode.js as well. | ||
// IMPORTANT: Any mods to authDone function must be made within authCodeDone.js as well. | ||
const authDone = () => { | ||
@@ -15,0 +15,0 @@ // For enabling logging via debugger (do not let it be a const...then can't change in debugger) |
{ | ||
"name": "@pega/auth", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"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
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
199893
2195