on main help sign in
fix: handle `ctrl+c` in hypercrush auth (#1665)
5b66c8dChristian Rocha
internal/cmd/login.go+1−2
@@ -75,8 +75,7 @@ func loginHyper() error {
75 if !hyperp.Enabled() {
75 if !hyperp.Enabled() {
76 return fmt.Errorf("hyper not enabled")
76 return fmt.Errorf("hyper not enabled")
77 }
77 }
78− ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
78+ ctx := getLoginContext()
79− defer cancel()
80
79
81 resp, err := hyper.InitiateDeviceAuth(ctx)
80 resp, err := hyper.InitiateDeviceAuth(ctx)
82 if err != nil {
81 if err != nil {