mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-14 22:08:45 +00:00
11 lines
277 B
TypeScript
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;
|
|
};
|