Add debug logging for JWT claims extraction in auth.service.ts.

This commit is contained in:
akastijn 2025-08-02 21:49:41 +02:00
parent b16fab26e7
commit 2b96957876

View File

@ -64,6 +64,7 @@ export class AuthService {
} }
const claims = this.extractJwtClaims(jwt); const claims = this.extractJwtClaims(jwt);
console.log("Logged in with ", claims);
this.userClaimsSubject.next(claims); this.userClaimsSubject.next(claims);
this.isAuthenticatedSubject.next(true); this.isAuthenticatedSubject.next(true);
return true; return true;
@ -88,6 +89,7 @@ export class AuthService {
localStorage.setItem('jwt', jwt); localStorage.setItem('jwt', jwt);
const claims = this.extractJwtClaims(jwt); const claims = this.extractJwtClaims(jwt);
console.log("Logged in with ", claims);
this.userClaimsSubject.next(claims); this.userClaimsSubject.next(claims);
} }