forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postBuilderLogin.ts13 lines, 469 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Builder } from "../client";
3
4export type BuilderLoginBody = {
5 username: string;
6 password: string;
7};
8
9// Sets a `builder.`-prefixed session cookie, which replaces any school session
10// in this browser: the two are mutually exclusive (each is 401 on the other side).
11export function postBuilderLogin(body: BuilderLoginBody): Promise<Builder> {
12 return client<Builder>("/builder/login", { method: "POST", body });
13}