Add debug logs for JWT and its decoded value in AuthService.

This commit is contained in:
akastijn 2025-07-06 20:32:02 +02:00
parent 76cb3cd89c
commit db394beda6

View File

@ -31,6 +31,8 @@ export class AuthService {
public login(code: string): Observable<any> { public login(code: string): Observable<any> {
return this.loginService.login(code).pipe( return this.loginService.login(code).pipe(
tap(jwt => { tap(jwt => {
console.log(jwt);
console.log(atob(jwt));
this.saveJwt(atob(jwt)); //Decode jwt from base64 this.saveJwt(atob(jwt)); //Decode jwt from base64
this.isAuthenticatedSubject.next(true); this.isAuthenticatedSubject.next(true);
}), }),