11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
export async function backendSignIn(
|
|
email: string,
|
|
password: string,
|
|
): Promise<boolean> {
|
|
// Simulate 1 second fetch
|
|
return new Promise((resolve) => {
|
|
const ok = email === "asdf@asdf" && password === "asdfasdf";
|
|
setTimeout(() => resolve(ok), 1000);
|
|
});
|
|
}
|