diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-11-04 13:47:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-04 13:47:50 +0300 |
| commit | eae19bb1b047b3568e7a9a624b50e80886e56331 (patch) | |
| tree | aa3215377fd1a7714e4c5763f9abf9d7dc7def2b /frontend/src/api/Auth.tsx | |
| parent | fix: remove insert trigger on users, check insert user on login err (#224) (diff) | |
| download | lphub-eae19bb1b047b3568e7a9a624b50e80886e56331.tar.gz lphub-eae19bb1b047b3568e7a9a624b50e80886e56331.tar.bz2 lphub-eae19bb1b047b3568e7a9a624b50e80886e56331.zip | |
feat/frontend: optimizing imports, file extensions (#230)
Co-authored-by: FifthWit <fifthwitbusiness@gmail.com>
Diffstat (limited to 'frontend/src/api/Auth.tsx')
| -rw-r--r-- | frontend/src/api/Auth.tsx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/frontend/src/api/Auth.tsx b/frontend/src/api/Auth.tsx deleted file mode 100644 index 09269e6..0000000 --- a/frontend/src/api/Auth.tsx +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | import axios from "axios"; | ||
| 2 | import { url } from "./Api"; | ||
| 3 | |||
| 4 | export const get_token = async (): Promise<string | undefined> => { | ||
| 5 | const response = await axios.get(url(`token`)) | ||
| 6 | if (!response.data.success) { | ||
| 7 | return undefined; | ||
| 8 | } | ||
| 9 | return response.data.data.token; | ||
| 10 | }; | ||
| 11 | |||
| 12 | export const delete_token = async () => { | ||
| 13 | await axios.delete(url("token")); | ||
| 14 | }; | ||