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