Options
All
  • Public
  • Public/Protected
  • All
Menu

Wraps instance of Axios client into a ClientAdapter to support automated authentication.

It should be given to Auth constructor.

Hierarchy

  • AxiosAdapter

Implements

Index

Constructors

constructor

  • new AxiosAdapter(axios: AxiosInstance, config?: AxiosRequestConfig): AxiosAdapter

Methods

asRequest

  • asRequest(request: AxiosRequestConfig): Request

asResponse

  • asResponse(response: AxiosResponse): Response

login

  • login(request: Request): Promise<AxiosResponse>

logout

  • logout(request: Request): Promise<AxiosResponse>

renew

  • renew(request: Request): Promise<AxiosResponse>

request

  • request(request: Request): Promise<AxiosResponse>

setupErrorResponseInterceptor

setupRequestInterceptor

Legend

  • Class
  • Class with type parameter
  • Constructor
  • Method
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter

Generated using TypeDoc