completionId: cgen-8858b477728046fc85c259c18f3141d8
cgen-8858b477728046fc85c259c18f3141d8
This commit is contained in:
parent
798db1e906
commit
b8aaf9895f
1 changed files with 3 additions and 10 deletions
|
|
@ -169,16 +169,9 @@ export default async function handler(req: any, res: any) {
|
||||||
error_code: authError?.code,
|
error_code: authError?.code,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
return res
|
return res.redirect(
|
||||||
.status(500)
|
`/login?error=auth_create&message=${encodeURIComponent(authError?.message || "Failed to create account")}`,
|
||||||
.json({
|
);
|
||||||
error: "auth_create",
|
|
||||||
message: authError?.message || "Failed to create auth user",
|
|
||||||
details: {
|
|
||||||
email: discordUser.email,
|
|
||||||
error_code: authError?.code,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
userId_temp = authData.user.id;
|
userId_temp = authData.user.id;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue