include credentials

This commit is contained in:
Danel Kungla
2025-09-29 11:11:33 +03:00
parent b26ff8819b
commit 02645aa598

View File

@@ -25,6 +25,7 @@ export const retrieveOrder = async (id: string, allowCache = true) => {
headers,
next,
...(allowCache ? { cache: 'force-cache' } : {}),
credentials: 'include',
})
.then(({ order }) => order)
.catch((err) => medusaError(err));
@@ -55,6 +56,7 @@ export const listOrders = async (
},
headers,
next,
credentials: 'include',
})
.then(({ orders }) => orders)
.catch((err) => medusaError(err));