talos-access / frontend /src /services /authService.ts
Greg
Claude Sonnet 4.6
feat(purge): admin sees amber banner after data purge with dismiss action
309c40b
Raw History Blame Contribute Delete
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')
}