• The default onApiError callback to retry request when refresh token expired.

    Parameters

    • authAPI: Pick<AuthApi, "refresh">

      The AuthAPI to refresh token

    • error: NBError

      The error in onApiError

    • request: AxiosRequestConfig<any>

      The current request made

    • attempts: number

      The number of retry attempts

    Returns Promise<boolean>

Generated using TypeDoc