Decode JWT before saving in AuthService.

This commit is contained in:
akastijn 2025-07-06 20:09:49 +02:00
parent 5d8ab2deef
commit 76cb3cd89c

View File

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