You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add githubToken and useLoggedInUser options to all SDK clients (#237)
* feat(auth): add githubToken and useLoggedInUser options to all SDK clients
Enable SDK clients to customize authentication when spawning the CLI server.
Node.js:
- Add githubToken and useLoggedInUser options to CopilotClientOptions
- Set COPILOT_SDK_AUTH_TOKEN env var and pass --auth-token-env flag
- Pass --no-auto-login when useLoggedInUser is false
- Default useLoggedInUser to false when githubToken is provided
Python:
- Add github_token and use_logged_in_user options
- Same behavior as Node.js SDK
Go:
- Add GithubToken and UseLoggedInUser fields to ClientOptions
- Same behavior as Node.js SDK
.NET:
- Add GithubToken and UseLoggedInUser properties to CopilotClientOptions
- Same behavior as Node.js SDK
All SDKs include validation to prevent use with cliUrl (external server)
and tests for the new options.
* Potential fix for pull request finding 'Unnecessarily complex Boolean expression'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
---------
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
0 commit comments