Skip to content

Commit a9a71fb

Browse files
committed
debug: check for the user in AuthGuard
1 parent 84b94a9 commit a9a71fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/guards/auth-guard.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const authGuard: CanMatchFn = (route, segments) => {
1616
const destroyRef = inject(DestroyRef)
1717

1818
if (savedUserId) {
19+
console.debug('AuthGuard: user found in local storage')
1920
return userService.getUser().pipe(
2021
takeUntilDestroyed(destroyRef),
2122
catchError((error: HttpErrorResponse) => {

0 commit comments

Comments
 (0)