feat: dynamically start oauth flow if no SRC_ACCESS_TOKEN by burmudar · Pull Request #1271 · sourcegraph/src-cli

added 2 commits

March 9, 2026 20:58
- AuthModeAccessToken and AuthModeOAuth
- And check for CI and required AuthModeAccessToken

@burmudar

@burmudar burmudar marked this pull request as ready for review

March 10, 2026 08:20

bahrmichael

@burmudar

@burmudar burmudar marked this pull request as ready for review

March 10, 2026 11:51

@burmudar

@burmudar

burmudar added a commit that referenced this pull request

Mar 23, 2026
* add AuthMode to config

- AuthModeAccessToken and AuthModeOAuth
- And check for CI and required AuthModeAccessToken

* decide loginFlow based on config AuthMode

* remove oauth flag

* check for OAuth token precense before starting a new OAuth flow

* remove unused ctx

(cherry picked from commit 4c3f356)

burmudar added a commit that referenced this pull request

Mar 23, 2026
* add AuthMode to config

- AuthModeAccessToken and AuthModeOAuth
- And check for CI and required AuthModeAccessToken

* decide loginFlow based on config AuthMode

* remove oauth flag

* check for OAuth token precense before starting a new OAuth flow

* remove unused ctx

(cherry picked from commit 4c3f356)