mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
19 lines
487 B
TypeScript
19 lines
487 B
TypeScript
import { trpc } from "$trpc/client";
|
|
|
|
export { requestLogout } from "$lib/services/auth";
|
|
export { requestDeletedFilesCleanup } from "$lib/services/file";
|
|
export {
|
|
requestClientRegistrationAndSessionUpgrade,
|
|
requestMasterKeyDownload,
|
|
} from "$lib/services/key";
|
|
|
|
export const requestLogin = async (email: string, password: string) => {
|
|
try {
|
|
await trpc().auth.login.mutate({ email, password });
|
|
return true;
|
|
} catch {
|
|
// TODO: Error Handling
|
|
return false;
|
|
}
|
|
};
|