completionId: cgen-01630bb1796640618fcdb3df7af9dedb

cgen-01630bb1796640618fcdb3df7af9dedb
This commit is contained in:
Builder.io 2025-11-10 23:56:25 +00:00
parent 64e145ae45
commit 5cea1f12ca

View file

@ -275,6 +275,11 @@ export default async function handler(req: any, res: any) {
return res.redirect("/login?error=link_create");
}
// Send notification if this is a new link (not from existing linking flow)
if (!existingLink) {
await notifyAccountLinked(userId, "Discord");
}
// Generate session token
const { data: sessionData, error: sessionError } =
await supabase.auth.admin.createSession({