Skip to content

Commit

Permalink
deprioritise headless login
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Jan 13, 2024
1 parent dbf4798 commit efa5108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions auth/auth_ui/auth_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
3 changes: 2 additions & 1 deletion auth/auth_ui/huh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit efa5108

Please sign in to comment.