API

Index

Classes

  • AuthError

  • AuthInterceptor

  • InMemoryAuthStorage

  • SimpleQueue

Interfaces

  • AuthInterceptorOptions

  • AuthStorage

  • OAuth2InterceptorOptions

  • OAuth2TokenResponse

Type aliases

Functions

Type aliases

Promisable

Ƭ Promisable: T | Promise‹T›

QueueItem

Ƭ QueueItem: object

Type declaration:

  • fail(): function

    • (reason: any): void

  • run(): function

    • (): Promise‹void›

Functions

Const createAuthInterceptor

createAuthInterceptor(options: AuthInterceptorOptions): AuthInterceptor‹›

Parameters:

Name

Type

options

Returns: AuthInterceptor‹›

Const createOAuth2Interceptor

createOAuth2Interceptor(__namedParameters: object): AuthInterceptor‹›

Parameters:

__namedParameters: object

Name

Type

authStorage

canAuthorize

function

oauth

object

onAuthorizationFailure

function

Returns: AuthInterceptor‹›

Const hasUnauthorizedResponseCode

hasUnauthorizedResponseCode(response: HttpResponse): boolean

Parameters:

Name

Type

response

HttpResponse

Returns: boolean

Const isUnauthorizedError

isUnauthorizedError(error: any): boolean

Parameters:

Name

Type

error

any

Returns: boolean

Last updated