Spaces:
Runtime error
Runtime error
Greg
Claude Sonnet 4.6
feat(purge): admin sees amber banner after data purge with dismiss action
309c40b Download frontend/src/services/authService.ts from Talosware/talos-access: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/services/authService.ts
- Command line
-
hf download hf://spaces/Talosware/talos-access/frontend/src/services/authService.ts
-
curl -L -o authService.ts https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/services/authService.ts
703 Bytes
| import api from './api' | |
| export async function login(email: string, password: string) { | |
| const { data } = await api.post('/auth/login', { email, password }) | |
| return data | |
| } | |
| export async function getMe() { | |
| const { data } = await api.get('/auth/me') | |
| return data | |
| } | |
| export async function adminResetPassword(userId: number) { | |
| const { data } = await api.post(`/auth/admin-reset-password/${userId}`) | |
| return data | |
| } | |
| export async function changePassword(token: string, newPassword: string) { | |
| const { data } = await api.post('/auth/reset-password', { token, new_password: newPassword }) | |
| return data | |
| } | |
| export async function acknowledgePurge(): Promise<void> { | |
| await api.post('/auth/ack-purge') | |
| } | |