Open
Description
After login, using the asp.net core 3.0 application. Not sure how to fix this.
getRole(): Observable<string | string[]> { return this.authService.onTokenChange() .pipe( map((token: any) => { const payload = token.getAccessTokenPayload(); return !!(token.isValid() && payload && payload['role']) ? this.getLowerCaseRoles(payload['role']) : 'user'; }), ); }``
core.js:6014 ERROR TypeError: token.getAccessTokenPayload is not a function`
using JWT tokens
Current behavior:
core.js:6014 ERROR TypeError: token.getAccessTokenPayload is not a function
Expected behavior: