completionId: cgen-8858b477728046fc85c259c18f3141d8

cgen-8858b477728046fc85c259c18f3141d8
This commit is contained in:
Builder.io 2025-11-09 23:17:50 +00:00
parent 798db1e906
commit b8aaf9895f

View file

@ -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;