Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not merge: propose improved code generation for multiple auth schemes #5

Closed
wants to merge 1 commit into from

Conversation

fern-support
Copy link
Collaborator

This PR proposes improved code generation for the Fern TypeScript SDK Generator.

Notable things:

  • Client can be initialized with an apiKey or clientId + clientSecret. A union is used for the best IntelliSense experience.
  • Introducing a class called APIClient.ts This class will store all top level headers so that nested clients can simply call getAllHeaders
  • Specify global headers like X-Fern-SDK-Language only once to reduce duplciation

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