Decode JWT before saving in AuthService.
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user