API

Index

Classes

Interfaces

Type aliases

Functions

Type aliases

Promisable

Ƭ Promisable: T | Promise‹T›

Defined in packages/auth-interceptor/src/promisable.ts:1

QueueItem

Ƭ QueueItem: object

Defined in packages/auth-interceptor/src/simpleQueue.ts:1

Type declaration:

  • fail(): function

    • (reason: any): void

  • run(): function

    • (): Promise‹void›

Functions

Const createAuthInterceptor

createAuthInterceptor(options: AuthInterceptorOptions): AuthInterceptor‹›

Defined in packages/auth-interceptor/src/authInterceptor.ts:87

Parameters:

Name

Type

options

Returns: AuthInterceptor‹›

Const createOAuth2Interceptor

createOAuth2Interceptor(__namedParameters: object): AuthInterceptor‹›

Defined in packages/auth-interceptor/src/oauth2Interceptor.ts:13

Parameters:

__namedParameters: object

Name

Type

authStorage

canAuthorize

function

oauth

object

onAuthorizationFailure

function

Returns: AuthInterceptor‹›

Const hasUnauthorizedResponseCode

hasUnauthorizedResponseCode(response: HttpResponse): boolean

Defined in packages/auth-interceptor/src/authInterceptor.ts:14

Parameters:

Name

Type

response

HttpResponse

Returns: boolean

Const isUnauthorizedError

isUnauthorizedError(error: any): boolean

Defined in packages/auth-interceptor/src/authInterceptor.ts:15

Parameters:

Name

Type

error

any

Returns: boolean

Last updated