From 9f35f9a131113c8cc398bb7450de9445a4541257 Mon Sep 17 00:00:00 2001 From: Matheus-Aguilar <43484640+Matheus-Aguilar@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:09:58 -0300 Subject: [PATCH] fix: provide app token on calls to b2b-organizations-graphql app (#72) --- CHANGELOG.md | 3 +++ node/clients/index.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7183bb..bc2b0e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Provide app token on calls to b2b-organizations-graphql app + ## [1.12.0] - 2024-09-04 ### Added diff --git a/node/clients/index.ts b/node/clients/index.ts index 39c3fbb..bd74b41 100644 --- a/node/clients/index.ts +++ b/node/clients/index.ts @@ -26,7 +26,7 @@ export class Clients extends IOClients { } export const getTokenToHeader = (ctx: IOContext) => { - const adminToken = ctx.adminUserAuthToken ?? ctx.authToken + const adminToken = ctx.authToken const userToken = ctx.storeUserAuthToken const { sessionToken, account } = ctx