fix: broken STS Sessions with large policies (#1096)

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2021-10-04 14:25:00 -07:00
committed by GitHub
parent 7a864d2631
commit 1b225e0901
7 changed files with 109 additions and 30 deletions

View File

@@ -76,6 +76,9 @@ export const deleteCookie = (name: string) => {
export const clearSession = () => {
storage.removeItem("token");
deleteCookie("token");
for (let i = 1; i < 10; i++) {
deleteCookie(`token${i}`);
}
};
// timeFromDate gets time string from date input

View File

@@ -136,7 +136,7 @@ const ModalWrapper = ({
return;
}
// Open SnackBar
if(modalSnackMessage.type !== "error") {
if (modalSnackMessage.type !== "error") {
setOpenSnackbar(true);
}
}