AuthTokenRequest interface
Properties
claims | An optional list of claims which to pass to AAD when requesting the access token. |
failure |
A function that is called if the token request fails, with the reason for the failure. |
resources | An optional list of resource for which to acquire the access token; only used for full trust apps. |
silent | An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown. |
success |
A function that is called if the token request succeeds, with the resulting token. |
Property Details
claims
An optional list of claims which to pass to AAD when requesting the access token.
claims?: string[]
Property Value
string[]
failureCallback
A function that is called if the token request fails, with the reason for the failure.
failureCallback?: (reason: string) => void
Property Value
(reason: string) => void
resources
An optional list of resource for which to acquire the access token; only used for full trust apps.
resources?: string[]
Property Value
string[]
silent
An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
silent?: boolean
Property Value
boolean
successCallback
A function that is called if the token request succeeds, with the resulting token.
successCallback?: (token: string) => void
Property Value
(token: string) => void