Interface: HttpClient

Auth.HttpClient

A configured axios client. See axios docs for more info https://github.com/axios/axios. All the functions below accept isPublic and isCsrfExempt in the request config options. Setting these to true will prevent this client from attempting to refresh the jwt access token or a csrf token respectively.

 // A public endpoint (no jwt token refresh)
 apiClient.get('/path/to/endpoint', { isPublic: true });
 // A csrf exempt endpoint
 apiClient.post('/path/to/endpoint', { data }, { isCsrfExempt: true });
Properties:
Name Type Description
get function
head function
options function
delete function

(csrf protected)

post function

(csrf protected)

put function

(csrf protected)

patch function

(csrf protected)

Source: