Skip to content

Pass account to VTEX ID calls#659

Open
vmourac-vtex wants to merge 2 commits into
masterfrom
cursor/add-vtexid-account-query-param
Open

Pass account to VTEX ID calls#659
vmourac-vtex wants to merge 2 commits into
masterfrom
cursor/add-vtexid-account-query-param

Conversation

@vmourac-vtex
Copy link
Copy Markdown

What is the purpose of this pull request?

Add the request account as the an query parameter to all calls made to vtexid.vtex.com.br.

What problem is this solving?

VTEX ID calls now require account scoping. This change uses the account from the request context (ctx.vtex.account / client IO context) so authentication-related VTEX ID requests are scoped to the caller account.

How should this be manually tested?

  • yarn test src/clients/external/ID.test.ts src/service/worker/runtime/graphql/schema/schemaDirectives/Auth.test.ts --runInBand
  • ./node_modules/.bin/tslint -c tslint.json "src/clients/external/ID.ts" "src/clients/external/ID.test.ts" "src/service/worker/runtime/graphql/schema/schemaDirectives/Auth.ts" "src/service/worker/runtime/graphql/schema/schemaDirectives/Auth.test.ts"
  • yarn build

Screenshots or example usage

N/A

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread src/clients/external/ID.ts Outdated
@iagoaraujo iagoaraujo marked this pull request as ready for review May 14, 2026 14:20
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Copy Markdown

@mendescamara mendescamara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants