Interface AxiosWithAuthTokenRefreshingConfig

Hierarchy

  • AxiosWithAuthTokenRefreshingConfig

Properties

getAccessToken: (() => null | string | Promise<null | string>)

Type declaration

    • (): null | string | Promise<null | string>
    • Returns null | string | Promise<null | string>

getRefreshToken: (() => null | string | Promise<null | string>)

Type declaration

    • (): null | string | Promise<null | string>
    • Returns null | string | Promise<null | string>

heseyaUrl: string
onTokenRefreshError?: ((error: AxiosError<any>) => void)

Type declaration

    • (error: AxiosError<any>): void
    • Parameters

      • error: AxiosError<any>

      Returns void

setAccessToken: ((token: string) => void)

Type declaration

    • (token: string): void
    • Parameters

      • token: string

      Returns void

setIdentityToken?: ((token: string) => void)

Type declaration

    • (token: string): void
    • Parameters

      • token: string

      Returns void

setRefreshToken: ((token: string) => void)

Type declaration

    • (token: string): void
    • Parameters

      • token: string

      Returns void

shouldIncludeAuthorizationHeader?: ((request: AxiosRequestConfig) => boolean)

Type declaration

    • (request: AxiosRequestConfig): boolean
    • Parameters

      • request: AxiosRequestConfig

      Returns boolean

Generated using TypeDoc