interface Authorization { getName(): undefined | string; getRoles(): string[]; hasRole(name): boolean; [
key:
string]
: unknown; } Indexable
[key: string]: unknown
Methods
getName
- getName(): undefined | string
Returns undefined | string
getRoles
- getRoles(): string[]
Returns string[]
hasRole
- hasRole(name): boolean
Returns boolean
Authorization data.