Skip to content
Snippets Groups Projects

Redirect on splash page if not logged.

Merged Alice Poggioli requested to merge bug/redirect-to-login-if-not-connected into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -51,7 +51,9 @@ script(type='module').
@@ -51,7 +51,9 @@ script(type='module').
let idToken = await sibAuth.getUserIdToken();
let idToken = await sibAuth.getUserIdToken();
if ( !user ) {
if ( !user ) {
return;
window.dispatchEvent(
 
new CustomEvent('requestNavigation', { detail: { route: 'splash' } })
 
);
}
}
user = await store.get(user);
user = await store.get(user);
Loading