Latest
Search
K
Links
Comment on page

AuthInterceptorOptions

Hierarchy

  • AuthInterceptorOptions

Index

Properties

Properties

canAuthorize

canAuthorize: function
Determine if request should be processed, by checking request's options (i.e. check for a domain match)
param Request options

Type declaration:

▸ (options: NormalizedHttpOptions): boolean
Parameters:
Name
Type
options
NormalizedHttpOptions

onAuthorizationFailure

onAuthorizationFailure: function
This function is called when:
  • authorize() function throws an error,
  • a second call to an api endpoint results in 401.

Type declaration:

▸ (err: AuthError): Promisable
Parameters:
Name
Type
err
AuthError

reauthorize

reauthorize: function
Obtain authorization data. At this point previous token has expired or Unauthorized response status code has been received. You can call refresh token endpoint.

Type declaration:

▸ (): Promisable

setAuthorizationData

setAuthorizationData: function
Insert authorization data to the request.
param Authorization data obtained earlier by {#authorize}
param Request options

Type declaration:

▸ (options: NormalizedHttpOptions): Promisable
Parameters:
Name
Type
options
NormalizedHttpOptions