fix: add HTTP timeout and propagate context in auth commands
Summary
- Pass
gitlab.WithContext(ctx)toUsers.CurrentUser()calls inauth loginandauth statusso Ctrl+C correctly cancels in-flight HTTP requests - Apply a targeted 30s context timeout to auth verification calls specifically, rather than a global
http.Clienttimeout that would affect large artifact downloads and other long-running operations
Closes #8256 (closed)
Test plan
-
glab auth statustimes out after 30s if gitlab.com is unreachable/unresponsive - Ctrl+C during
glab auth statusorglab auth logincancels the request and exits cleanly - Existing auth status and login tests pass
Edited by Kai Armstrong