auth

package
v1.22.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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) Init

func (m *CheckModel) Init() tea.Cmd

Init starts the auth check.

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.

func (*CheckModel) Update

func (m *CheckModel) Update(msg tea.Msg) tea.Cmd

Update handles messages.

func (*CheckModel) View

func (m *CheckModel) View() string

View renders the check UI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL