include credentials
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user