• Parameters

    • instance: XiorInstance
    • options: {
          refreshToken: ((error: AxiosError) => any);
          shouldRefresh?: ((response: XiorResponse) => boolean);
      }
      • refreshToken: ((error: AxiosError) => any)
          • (error): any
          • Parameters

            • error: AxiosError

            Returns any

      • OptionalshouldRefresh?: ((response: XiorResponse) => boolean)
          • (response): boolean
          • Parameters

            • response: XiorResponse

            Returns boolean

    Returns void