Skip to content

Commit

Permalink
Fallback to adminUserAuthCookie if storeUserAuthCookie is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
polishq committed Sep 30, 2024
1 parent d8a66b3 commit 93b278a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/directives/validateStoreUserAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class ValidateStoreUserAccess extends SchemaDirectiveVisitor {

const { hasStoreToken, hasValidStoreToken } = await validateStoreToken(
context,
storeUserAuthToken as string
(storeUserAuthToken as string) ?? (adminUserAuthToken as string)
)

// add store token metrics
Expand Down

0 comments on commit 93b278a

Please sign in to comment.