Add debug logging for JWT claims extraction in auth.service.ts.
This commit is contained in:
@@ -64,6 +64,7 @@ export class AuthService {
|
||||
}
|
||||
|
||||
const claims = this.extractJwtClaims(jwt);
|
||||
console.log("Logged in with ", 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("Logged in with ", claims);
|
||||
this.userClaimsSubject.next(claims);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user