Add debug logs for JWT and its decoded value in AuthService.
This commit is contained in:
parent
76cb3cd89c
commit
db394beda6
|
|
@ -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);
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user