forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

postLogin.ts11 lines, 269 bytesHistoryRawDownload
1import { client } from "./client";
2import type { User } from "./types";
3
4export type LoginBody = {
5 username: string;
6 password: string;
7};
8
9export function postLogin(body: LoginBody): Promise<User> {
10 return client<User>("/auth/login", { method: "POST", body });
11}