feat: instance invites
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user