fix: broken STS Sessions with large policies (#1096)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -136,7 +136,7 @@ const ModalWrapper = ({
|
||||
return;
|
||||
}
|
||||
// Open SnackBar
|
||||
if(modalSnackMessage.type !== "error") {
|
||||
if (modalSnackMessage.type !== "error") {
|
||||
setOpenSnackbar(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user