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,
|
||||
},
|
||||
);
|
||||
return res
|
||||
.status(500)
|
||||
.json({
|
||||
error: "auth_create",
|
||||
message: authError?.message || "Failed to create auth user",
|
||||
details: {
|
||||
email: discordUser.email,
|
||||
error_code: authError?.code,
|
||||
},
|
||||
});
|
||||
return res.redirect(
|
||||
`/login?error=auth_create&message=${encodeURIComponent(authError?.message || "Failed to create account")}`,
|
||||
);
|
||||
}
|
||||
|
||||
userId_temp = authData.user.id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue