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 { await api.post('/auth/ack-purge') }