From 467f89c104df40904ef4c6b408507e90fe661724 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 30 May 2024 12:49:22 +0100 Subject: feat(ui): add login/register dialog (#2056) --- ui/src/state/client.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ui/src/state/client.ts') diff --git a/ui/src/state/client.ts b/ui/src/state/client.ts index f43683c1..5ec0d8a7 100644 --- a/ui/src/state/client.ts +++ b/ui/src/state/client.ts @@ -11,3 +11,19 @@ export async function sessionToken(): Promise { export async function settings(): Promise { return await invoke("config"); } + +export async function login( + username: string, + password: string, + key: string, +): Promise { + return await invoke("login", { username, password, key }); +} + +export async function register( + username: string, + email: string, + password: string, +): Promise { + return await invoke("register", { username, email, password }); +} -- cgit v1.3.1