Enforce database concurrency invariants

This commit is contained in:
Arun committed 2026-08-11 09:51:33 +00:00
1 parent 145f13fee5
commit 924f9ffcc6
6 files changed
+114 -31

No files matched your search

+2 -2
View File
@@ -35,10 +35,10 @@ const API = {
return data;
},
async register(email, password, username) {
async register(email, password, username, bootstrapToken = '') {
const data = await apiFetch('/auth/register', {
method: 'POST',
body: JSON.stringify({ email, password, username })
body: JSON.stringify({ email, password, username, bootstrap_token: bootstrapToken || undefined })
});
if (data.error) throw new Error(data.error);
return data;