Merged in fix/add-missing-partner-data (pull request #3116)

fix: Add param to getScandicUser for extended data

* Add param to getScandicUser for extended data


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-11-10 15:23:07 +00:00
parent ce3412b29f
commit 0b569e28ce
4 changed files with 8 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ export async function createAppContext() {
return user.membership?.currentPoints ?? 0
},
getScandicUser: async () => {
getScandicUser: async (input) => {
const session = await getUserSession()
if (!session) return null
@@ -82,6 +82,7 @@ export async function createAppContext() {
expires_at: session.token.expires_at ?? 0,
access_token: session.token.access_token,
},
includeExtendedPartnerData: input?.withExtendedPartnerData,
})
return user ?? null