@digigov/auth
Advanced tools
Comparing version 0.0.1-auth-flow.5 to 0.0.1-auth-flow.6
@@ -71,10 +71,12 @@ import { useEffect, useMemo } from 'react'; | ||
var checkWindowInterval = setInterval(function () { | ||
if (externalWindow === null) { | ||
clearInterval(checkWindowInterval); | ||
window.localStorage.removeItem('popup-login'); | ||
try { | ||
if (externalWindow === null || externalWindow.closed) { | ||
clearInterval(checkWindowInterval); | ||
window.localStorage.removeItem('popup-login'); | ||
if (readSession().authenticated) { | ||
window.location.href = new URL(nextURL, document.baseURI).href; | ||
if (readSession().authenticated) { | ||
window.location.href = new URL(nextURL, document.baseURI).href; | ||
} | ||
} | ||
} | ||
} catch (err) {} | ||
}, 500); | ||
@@ -81,0 +83,0 @@ } |
@@ -71,10 +71,12 @@ import { useEffect, useMemo } from 'react'; | ||
var checkWindowInterval = setInterval(function () { | ||
if (externalWindow === null) { | ||
clearInterval(checkWindowInterval); | ||
window.localStorage.removeItem('popup-login'); | ||
try { | ||
if (externalWindow === null || externalWindow.closed) { | ||
clearInterval(checkWindowInterval); | ||
window.localStorage.removeItem('popup-login'); | ||
if (readSession().authenticated) { | ||
window.location.href = new URL(nextURL, document.baseURI).href; | ||
if (readSession().authenticated) { | ||
window.location.href = new URL(nextURL, document.baseURI).href; | ||
} | ||
} | ||
} | ||
} catch (err) {} | ||
}, 500); | ||
@@ -81,0 +83,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/** @license Digigov v0.0.1-auth-flow.5+c24db6f | ||
/** @license Digigov v0.0.1-auth-flow.6+e0813e0 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
14
hooks.js
@@ -95,10 +95,12 @@ "use strict"; | ||
var checkWindowInterval = setInterval(function () { | ||
if (externalWindow === null) { | ||
clearInterval(checkWindowInterval); | ||
window.localStorage.removeItem('popup-login'); | ||
try { | ||
if (externalWindow === null || externalWindow.closed) { | ||
clearInterval(checkWindowInterval); | ||
window.localStorage.removeItem('popup-login'); | ||
if ((0, _localSession.readSession)().authenticated) { | ||
window.location.href = new URL(nextURL, document.baseURI).href; | ||
if ((0, _localSession.readSession)().authenticated) { | ||
window.location.href = new URL(nextURL, document.baseURI).href; | ||
} | ||
} | ||
} | ||
} catch (err) {} | ||
}, 500); | ||
@@ -105,0 +107,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/** @license Digigov v0.0.1-auth-flow.5+c24db6f | ||
/** @license Digigov v0.0.1-auth-flow.6+e0813e0 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@digigov/auth", | ||
"version": "0.0.1-auth-flow.5+c24db6f", | ||
"version": "0.0.1-auth-flow.6+e0813e0", | ||
"description": "@digigov authentication client", | ||
@@ -20,5 +20,5 @@ "author": "GRNET Developers <devs@lists.grnet.gr>", | ||
}, | ||
"gitHead": "c24db6fcf235292ff74e7781ed589466ddb78339", | ||
"gitHead": "e0813e0479fd6f59f81400f716b3187f4a1440c2", | ||
"private": false, | ||
"typings": "./index.d.ts" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
84349
2510