diff --git a/frontend/src/app/services/auth.service.ts b/frontend/src/app/services/auth.service.ts index 62f6add..733d15b 100644 --- a/frontend/src/app/services/auth.service.ts +++ b/frontend/src/app/services/auth.service.ts @@ -64,6 +64,7 @@ export class AuthService { } const claims = this.extractJwtClaims(jwt); + console.log("User claims: ", claims); this.userClaimsSubject.next(claims); this.isAuthenticatedSubject.next(true); return true; @@ -88,6 +89,7 @@ export class AuthService { localStorage.setItem('jwt', jwt); const claims = this.extractJwtClaims(jwt); + console.log("User claims: ", claims); this.userClaimsSubject.next(claims); } @@ -103,6 +105,7 @@ export class AuthService { */ public getUserAuthorizations(): string[] { const claims = this.userClaimsSubject.getValue(); + console.log("User claims: ", claims); return claims?.authorizations || []; }