From 9dc4fbc2b8628bab2ed64f8acfaa18c2b761ea3b Mon Sep 17 00:00:00 2001 From: Ash Date: Fri, 12 Jan 2024 09:54:10 +0000 Subject: [PATCH] fix(core): include cookieless auth token in logout request if it exists (#5491) --- .../sanity/src/core/store/_legacy/authStore/createAuthStore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sanity/src/core/store/_legacy/authStore/createAuthStore.ts b/packages/sanity/src/core/store/_legacy/authStore/createAuthStore.ts index 83841aaea0d7..b9c3066bd8ee 100644 --- a/packages/sanity/src/core/store/_legacy/authStore/createAuthStore.ts +++ b/packages/sanity/src/core/store/_legacy/authStore/createAuthStore.ts @@ -239,6 +239,7 @@ export function _createAuthStore({ dataset, useCdn: true, withCredentials: true, + token: getToken(projectId) ?? undefined, apiVersion: '2021-06-07', requestTagPrefix: 'sanity.studio', ...hostOptions,