Documentation
¶
Overview ¶
Package auth provides authentication steps for onboarding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateModel ¶
type AuthenticateModel struct {
// contains filtered or unexported fields
}
AuthenticateModel handles the device code authentication flow.
func NewAuthenticate ¶
func NewAuthenticate(ctx context.Context, theme styles.Theme, authService auth.Auth, scope log.Scope) *AuthenticateModel
NewAuthenticate creates a new authenticate step.
func (*AuthenticateModel) Init ¶
func (m *AuthenticateModel) Init() tea.Cmd
Init starts the device auth flow.
func (*AuthenticateModel) SetSize ¶
func (m *AuthenticateModel) SetSize(width, height int)
SetSize updates dimensions.
func (*AuthenticateModel) ShortHelp ¶
func (m *AuthenticateModel) ShortHelp() []key.Binding
ShortHelp returns the key bindings for the short help view.
func (*AuthenticateModel) Update ¶
func (m *AuthenticateModel) Update(msg tea.Msg) tea.Cmd
Update handles messages.
func (*AuthenticateModel) View ¶
func (m *AuthenticateModel) View() string
View renders the authenticate UI.
type CheckModel ¶
type CheckModel struct {
// contains filtered or unexported fields
}
CheckModel checks if the user has a valid auth token.
func NewCheck ¶
func NewCheck(ctx context.Context, theme styles.Theme, authService auth.Auth, scope log.Scope) *CheckModel
NewCheck creates a new auth check step.
func (*CheckModel) SetSize ¶
func (m *CheckModel) SetSize(width, height int)
SetSize updates dimensions.
func (*CheckModel) ShortHelp ¶
func (m *CheckModel) ShortHelp() []key.Binding
ShortHelp returns the key bindings for the short help view.
Click to show internal directories.
Click to hide internal directories.