diff --git a/auth/auth_ui/auth_ui.go b/auth/auth_ui/auth_ui.go index b978124e..e7e82b79 100644 --- a/auth/auth_ui/auth_ui.go +++ b/auth/auth_ui/auth_ui.go @@ -10,10 +10,10 @@ import ( type LoginType int8 const ( - // LHeadless is the email/password login type. - LHeadless LoginType = iota // LInteractive is the SSO login type (Google, Apple, etc). - LInteractive + LInteractive LoginType = iota + // LHeadless is the email/password login type. + LHeadless // LCancel should be returned if the user cancels the login intent. LCancel ) diff --git a/auth/auth_ui/huh.go b/auth/auth_ui/huh.go index 22148c17..5162cfa2 100644 --- a/auth/auth_ui/huh.go +++ b/auth/auth_ui/huh.go @@ -53,7 +53,8 @@ func (*Huh) RequestLoginType(w io.Writer) (LoginType, error) { var loginType LoginType err := huh.NewSelect[LoginType]().Title("Select login type"). Options( - huh.NewOption("Email", LHeadless), + huh.NewOption("Email (manual)", LInteractive), + huh.NewOption("Email (automatic, experimental)", LHeadless), huh.NewOption("Google", LInteractive), huh.NewOption("Apple", LInteractive), huh.NewOption("Login with Single-Sign-On (SSO)", LInteractive),