(body: RegisterRequest)
| 30 | } |
| 31 | |
| 32 | export function register(body: RegisterRequest): Promise<AuthResponse> { |
| 33 | return authFetch<AuthResponse>('/auth/register', { |
| 34 | method: 'POST', |
| 35 | body: JSON.stringify(body), |
| 36 | }) |
| 37 | } |
| 38 | |
| 39 | export function login(body: LoginRequest): Promise<AuthResponse> { |
| 40 | return authFetch<AuthResponse>('/auth/login', { |
no test coverage detected