Created
March 11, 2024 14:04
-
-
Save Jessica7/23bae6320ecf8ebdad62502b2a4ef250 to your computer and use it in GitHub Desktop.
Api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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