Add debug logging for JWT claims extraction in auth.service.ts.
This commit is contained in:
parent
b16fab26e7
commit
2b96957876
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user