break endless loop in getAuthToken()
This commit is contained in:
parent
1a1eaf1af8
commit
7bce808a0d
@ -6,7 +6,7 @@ async function getAuthToken() {
|
|||||||
storageData = window.sessionStorage.getItem("token");
|
storageData = window.sessionStorage.getItem("token");
|
||||||
dec = JSON.parse(storageData);
|
dec = JSON.parse(storageData);
|
||||||
if (!!dec && Object.keys(dec).includes("accessToken")) {
|
if (!!dec && Object.keys(dec).includes("accessToken")) {
|
||||||
let tokInspect;
|
let tokInspect = dec.accessToken;
|
||||||
if (tokInspect && tokInspect.startsWith("eyJ")) {
|
if (tokInspect && tokInspect.startsWith("eyJ")) {
|
||||||
tok = tokInspect;
|
tok = tokInspect;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user