completionId: cgen-01630bb1796640618fcdb3df7af9dedb
cgen-01630bb1796640618fcdb3df7af9dedb
This commit is contained in:
parent
64e145ae45
commit
5cea1f12ca
1 changed files with 5 additions and 0 deletions
|
|
@ -275,6 +275,11 @@ export default async function handler(req: any, res: any) {
|
||||||
return res.redirect("/login?error=link_create");
|
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
|
// Generate session token
|
||||||
const { data: sessionData, error: sessionError } =
|
const { data: sessionData, error: sessionError } =
|
||||||
await supabase.auth.admin.createSession({
|
await supabase.auth.admin.createSession({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue