fix: add HTTP timeout and propagate context in auth commands

Summary

  • Pass gitlab.WithContext(ctx) to Users.CurrentUser() calls in auth login and auth status so Ctrl+C correctly cancels in-flight HTTP requests
  • Apply a targeted 30s context timeout to auth verification calls specifically, rather than a global http.Client timeout that would affect large artifact downloads and other long-running operations

Closes #8256 (closed)

Test plan

  • glab auth status times out after 30s if gitlab.com is unreachable/unresponsive
  • Ctrl+C during glab auth status or glab auth login cancels the request and exits cleanly
  • Existing auth status and login tests pass
Edited by Kai Armstrong

Merge request reports

Loading