diff --git a/src/app/_guards/auth.guard.ts b/src/app/_guards/auth.guard.ts index 395d37b..f2383ec 100644 --- a/src/app/_guards/auth.guard.ts +++ b/src/app/_guards/auth.guard.ts @@ -39,7 +39,7 @@ export class AuthGuard implements CanActivate { route: ActivatedRouteSnapshot, state: RouterStateSnapshot ): Observable | Promise | boolean | UrlTree { - if (localStorage.getItem(btoa('CICADA_PRIVATE_KEY'))) { + if (sessionStorage.getItem(btoa('CICADA_SESSION_TOKEN'))) { return true; } this.router.navigate(['/auth']);