From 88f92747176317e824392c4417c10cb7f84ee168 Mon Sep 17 00:00:00 2001 From: Matheus-Aguilar Date: Mon, 3 Jun 2024 15:35:51 -0300 Subject: [PATCH] fix: remove nullish returning null --- node/clients/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/clients/index.ts b/node/clients/index.ts index 2fc6d8a..a064bf1 100644 --- a/node/clients/index.ts +++ b/node/clients/index.ts @@ -14,7 +14,7 @@ import VtexId from './vtexId' export const getTokenToHeader = (ctx: IOContext) => { const adminToken = ctx.adminUserAuthToken ?? ctx.authToken - const userToken = ctx.storeUserAuthToken ?? null + const userToken = ctx.storeUserAuthToken const { sessionToken, account } = ctx let allCookies = `VtexIdclientAutCookie=${adminToken}`