Function createRefreshTokenInterceptorHandler

  • Parameters

    • getAccessTokenFn: (() => string)
        • (): string
        • Returns string

    • refreshTokenFn: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • logoutFn: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • Optional errorHandlerFn: ((error: unknown) => Promise<void>)
        • (error: unknown): Promise<void>
        • Parameters

          • error: unknown

          Returns Promise<void>

    Returns FetcherErrorResponseInterceptor

Generated using TypeDoc