Merged in feat/basic-user (pull request #3135)

feat(SW-3610): Get basic user from api

* feat(SW-3610): Get basic user from api

* .

* Optional profileid


Approved-by: Anton Gunnarsson
This commit is contained in:
Linus Flood
2025-11-12 14:00:56 +00:00
parent 88644597df
commit 19495eed28
11 changed files with 123 additions and 23 deletions

View File

@@ -5,7 +5,7 @@ import { safeTry } from "@scandic-hotels/common/utils/safeTry"
import { env } from "../../../../env/server"
import { encrypt } from "../../../utils/encryption"
import { getVerifiedUser } from "./getVerifiedUser"
import { getBasicUser } from "./getBasicUser"
import type { Lang } from "@scandic-hotels/common/constants/language"
import type { Session } from "next-auth"
@@ -30,7 +30,7 @@ export async function updateStaysBookingUrl(
lang: Lang
) {
const [user, error] = await safeTry(
getVerifiedUser({
getBasicUser({
token: {
access_token: session.token.access_token,
expires_at: session.token.expires_at ?? 0,