add new component that sets the login state from the server
This commit is contained in:
4
src/Umbraco.Web.UI.Client/src/auth/auth.ts
Normal file
4
src/Umbraco.Web.UI.Client/src/auth/auth.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default function() {
|
||||
sessionStorage.setItem('is-authenticated', 'true');
|
||||
history.replaceState(null, '', 'section');
|
||||
}
|
||||
Reference in New Issue
Block a user