import { client } from "../client"; import type { User } from "../client"; export type LoginBody = { username: string; password: string; }; export type SchoolChoice = { slug: string; name: string; }; export type SchoolChoiceResponse = { username: string; schools: SchoolChoice[]; }; export type LoginResponse = User | SchoolChoiceResponse; export function postLogin(body: LoginBody): Promise { return client("/auth/login", { method: "POST", body }); }