Open manodupont opened 1 year ago
The token type in keycloak.d.ts is not completed so when i write for example req.token.content i have this error Property 'content' does not exist on type 'Token'.
req.token.content
Property 'content' does not exist on type 'Token'.
16.1.0
I would expect the Token type to be something like
Token
The type for a token is :
interface Token { isExpired(): boolean hasRole(roleName: string): boolean hasApplicationRole(appName: string, roleName: string): boolean hasRealmRole(roleName: string): boolean content: <anythinghere> ... }
interface Token { isExpired(): boolean hasRole(roleName: string): boolean hasApplicationRole(appName: string, roleName: string): boolean hasRealmRole(roleName: string): boolean }
No response
Describe the bug
The token type in keycloak.d.ts is not completed so when i write for example
req.token.content
i have this errorProperty 'content' does not exist on type 'Token'.
Version
16.1.0
Expected behavior
I would expect the
Token
type to be something likeThe type for a token is :
Actual behavior
The type for a token is :
How to Reproduce?
No response
Anything else?
No response