Merged in feat/SW-3549-handle-unlinked-account (pull request #3019)
fix(SW-3549): update social session management functions for clarity and consistency * refactor(SW-3549): rename session management functions for clarity and consistency * merge Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -3,7 +3,7 @@ import { type NextRequest, NextResponse } from "next/server"
|
||||
import { getPublicURL } from "@/server/utils"
|
||||
|
||||
import { signOut } from "@/auth"
|
||||
import { destroySession } from "@/auth/scandic/session"
|
||||
import { destroySocialSession } from "@/auth/scandic/session"
|
||||
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
@@ -17,7 +17,7 @@ export async function GET(
|
||||
await signOut({ redirectTo, redirect: false })
|
||||
|
||||
// Delete scandic session once user logouts from sas
|
||||
await destroySession()
|
||||
await destroySocialSession()
|
||||
|
||||
return NextResponse.redirect(redirectTo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user