Skip to content

Commit 74b3ed0

Browse files
authored
fix: updating the cli version fixes (#8)
1 parent 32cbb03 commit 74b3ed0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func loadAuthToken(ctx context.Context) oauth2.TokenSource {
5959
cfg := auth.Config{
6060
Environment: environment.Production,
6161
}
62+
cfg.Process()
6263
cfg.UseAccessTokenCache = true
6364
tokenSource, _, err := cfg.LoadCache(ctx)
6465
if err != nil {

internal/lsp/login.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func (s *Server) HandleLogin(_ context.Context, _ json.RawMessage) (any, error)
3434
cfg := auth.Config{
3535
Environment: environment.Production,
3636
}
37+
cfg.Process()
3738
cfg.UseAccessTokenCache = true
3839
resp, err := cfg.StartDeviceFlow(ctx)
3940
if err != nil {
@@ -70,6 +71,7 @@ func (s *Server) pollLogin(ctx context.Context, cancel context.CancelFunc, resp
7071
cfg := auth.Config{
7172
Environment: environment.Production,
7273
}
74+
cfg.Process()
7375
cfg.UseAccessTokenCache = true
7476
tokenSource, err := cfg.PollDeviceFlow(ctx, resp)
7577
if err != nil {

0 commit comments

Comments
 (0)