token.getAccessTokenPayload is not a function
Abierto
question
- Lenguaje dominante
- TypeScript
- Estrellas
- 25.7k
- Forks
- 7.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
After login, using the asp.net core 3.0 application. Not sure how to fix this.
` getRole(): Observable {
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:**
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.