forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

postSchoolEnter.ts8 lines, 399 bytesHistoryRawDownload
1import { client } from "../client";
2import type { User } from "../client";
3
4// Support access: swaps the builder cookie for an ordinary session of one of
5// the school's admins. Refused (403) on a suspended school.
6export function postSchoolEnter(id: string, body: { username: string }): Promise<User> {
7 return client<User>(`/schools/${encodeURIComponent(id)}/enter`, { method: "POST", body });
8}