Merged in feature/SW-3505-fetch-eurobonus-points (pull request #2847)

feat(SW-3505): add endpoint for getting eurobonus profile

* feat(SW-3505): add endpoint for getting eurobonus profile

* make sure we add loginType to session

* no need to run zod parsing twice

* Make SAS environment variables mandatory


Approved-by: Anton Gunnarsson
This commit is contained in:
Joakim Jäderberg
2025-09-23 12:13:20 +00:00
parent 8cd6f1d3a5
commit c46e71d76e
6 changed files with 90 additions and 5 deletions

View File

@@ -6,6 +6,8 @@ import {
configureServerClient,
} from "@scandic-hotels/trpc/serverClient"
import { auth } from "@/auth"
import type { Lang } from "@scandic-hotels/common/constants/language"
export async function createAppContext() {
@@ -18,7 +20,8 @@ export async function createAppContext() {
url: headersList.get("x-url")!,
contentType: headersList.get("x-contenttype")!,
auth: async () => {
return null
const session = await auth()
return session
},
})