account settings and account creation

This commit is contained in:
2025-12-27 20:01:17 -05:00
parent aa2dfb0407
commit 2202abe89f
21 changed files with 1848 additions and 718 deletions
+11 -3
View File
@@ -44,13 +44,21 @@ export default function BetaConfirmPage() {
}
const data = await res.json();
const jwt = data.token ?? data.accessToken;
if (!jwt) throw new Error("No token returned from server");
const uuid = data.uuid ?? data.user?.uuid;
if (!uuid) throw new Error("No uuid returned from server");
const email = data.email ?? data.user?.email;
if (!email) throw new Error("No email returned from server");
setSession(jwt, {
email: data.email,
displayName: data.displayName ?? null,
role: data.role ?? "USER",
uuid,
email,
displayName: data.displayName ?? data.user?.displayName ?? null,
role: data.role ?? data.user?.role ?? "USER",
});
setStatus("success");