From 13c1a8d36acb1bbc00e6d5a5b00889d4b8e733b6 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 24 Nov 2022 14:59:34 +0100 Subject: [PATCH] add new component that sets the login state from the server --- src/Umbraco.Web.UI.Client/src/auth/auth.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/Umbraco.Web.UI.Client/src/auth/auth.ts diff --git a/src/Umbraco.Web.UI.Client/src/auth/auth.ts b/src/Umbraco.Web.UI.Client/src/auth/auth.ts new file mode 100644 index 0000000000..f1965e558e --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/auth/auth.ts @@ -0,0 +1,4 @@ +export default function() { + sessionStorage.setItem('is-authenticated', 'true'); + history.replaceState(null, '', 'section'); +}