forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

postLogin.ts11 lines, 272 bytesHistoryRawDownload
1import { client } from "../client";
2import type { User } from "../client";
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}