fix(typescript): Remove oauthTokenOverride config flag - always enable token override #11112
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.
Description
Refs #11029
Removes the
oauthTokenOverrideconfiguration flag from the TypeScript SDK generator. OAuth token override is now always enabled, allowing users to provide a pre-generated bearer token instead of client ID/secret without any configuration.Link to Devin run: https://app.devin.ai/sessions/87ae4fc7de9144918bfe7cc550f5e0a0
Requested by: [email protected] (@tjb9dc)
Changes Made
oauthTokenOverridefromTypescriptCustomConfigSchema(Zod schema)oauthTokenOverridefromSdkCustomConfiginterfaceSdkGeneratorCli.tsSdkGenerator.tsBaseClientContextImpl.tsSdkClientClassGenerator.tsGeneratedSdkClientClassImpl.tsBaseClientTypeGenerator.tsAuthProvidersGenerator.tsOAuthAuthProviderGenerator.tsReadmeConfigBuilder.tsReadmeSnippetBuilder.tshasTokenOverride = trueinOAuthAuthProviderGenerator.tsOAuthAuthProvider.createInstance()instead of conditional instantiationversions.ymlwith changelog entrytoken-overrideseed test fixtures that used the removed config flagUpdates Since Last Revision
token-overridefixtures fromseed/ts-sdk/seed.ymloauth-client-credentials/token-overrideandoauth-client-credentials-environment-variables/token-overrideTesting
pnpm run check)Human Review Checklist
oauthTokenOverrideconfig - this PR only changes TypeScript as requestedhasTokenOverride = truepattern is kept for minimal diff; could be simplified further in a follow-up