feat(sdk-api): add enterprise to AddAccessTokenOptions#8968
Merged
Conversation
908d52c to
6a2b126
Compare
Allow callers of sdk.addAccessToken() to pass an enterprise ID. The value is forwarded to the server via the existing request.send(params) call in bitgoAPI.ts, which already spreads all params into the request body. Ticket: ANT-909 Session-Id: 9f5635b8-39d3-4249-a4c5-eb72a35f17ae Task-Id: f65c85d3-215f-4b00-906d-462c725ab8a1
6a2b126 to
a95bf93
Compare
s84krish
approved these changes
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
enterprise?: stringtoAddAccessTokenOptionsinmodules/sdk-api/src/types.tsrequest.send(params)call inbitgoAPI.ts— no further changes neededsdk.addAccessToken()to scope tokens to a specific enterprise, unblocking the long-term fix for SSO token creation failures (ANT-839)Test plan
modules/sdk-apimodules/sdk-apipassaddAccessTokeninmodules/bitgocontinue to passenterpriseinsdk.addAccessToken({ ..., enterprise: '<id>' })sends the field to the server in the request bodyTicket: ANT-909
🤖 Generated with Ralph