Files
arkvault/src/routes/(fullscreen)/auth/login/service.ts
2024-12-28 16:54:46 +09:00

11 lines
277 B
TypeScript

export const requestLogin = async (email: string, password: string) => {
const res = await fetch("/api/auth/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ email, password }),
});
return res.ok;
};