From 76cb3cd89c14a9a1c680b7c899cc69fb4079fe8e Mon Sep 17 00:00:00 2001 From: akastijn Date: Sun, 6 Jul 2025 20:09:49 +0200 Subject: [PATCH] Decode JWT before saving in `AuthService`. --- frontend/src/app/services/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/services/auth.service.ts b/frontend/src/app/services/auth.service.ts index f88cc1c..d1bd802 100644 --- a/frontend/src/app/services/auth.service.ts +++ b/frontend/src/app/services/auth.service.ts @@ -31,7 +31,7 @@ export class AuthService { public login(code: string): Observable { 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 => {