feat: instance invites

This commit is contained in:
Zoe
2026-10-08 13:50:44 -05:00
parent f6e1bc1f47
commit fae05ebc4c
17 changed files with 3962 additions and 26 deletions
+5 -1
View File
@@ -162,7 +162,9 @@ export const useAuth = () => {
const signUp = async (
email: string,
password: string,
name: string
name: string,
// needed while the instance only takes invited people
inviteToken?: string,
): Promise<Result<{ user: User; token: string }, { error: AuthError, data?: any }>> => {
sessionFetching.value = true;
@@ -171,6 +173,8 @@ export const useAuth = () => {
email,
password,
name,
}, {
headers: inviteToken ? { 'x-invite-token': inviteToken } : undefined,
});
if (error) {