Skip to content

Commit

Permalink
fix: redirect user before finalizing OAuth2 login (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr authored Sep 23, 2024
1 parent de3f2c9 commit 89a08d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cloudx/client/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ func (h *CommandHelper) oAuth2DanceWithServer(ctx context.Context, client *oauth
serverErr <- fmt.Errorf("failed OAuth2 token exchange: %w", err)
return
}
serverToken <- t
redirectOK(w, r)
serverToken <- t
}),
}
go func() { _ = srv.Serve(l) }()
Expand Down

0 comments on commit 89a08d6

Please sign in to comment.