Skip to content

Instantly share code, notes, and snippets.

@Jessica7
Created March 11, 2024 14:04
Show Gist options
  • Select an option

  • Save Jessica7/23bae6320ecf8ebdad62502b2a4ef250 to your computer and use it in GitHub Desktop.

Select an option

Save Jessica7/23bae6320ecf8ebdad62502b2a4ef250 to your computer and use it in GitHub Desktop.
Api
export const doAuthenticate = async (data: doAuthenticateData) => {
const options: AxiosRequestConfig = {
method: 'POST',
headers: { 'content-type': 'application/x-www-form-urlencoded' },
data: qs.stringify(data),
url: API_URL_AUTH,
withCredentials: false
};
const response = await axios(options);
return response;
};
export const getUserInfo = async () => {
....
};
export const doLogout = async () => {
....
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment