Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCompleteMsg ¶
type AuthCompleteMsg struct{}
AuthCompleteMsg is emitted when authentication succeeds.
type CodeSubmittedMsg ¶
type CodeSubmittedMsg struct {
Code string
}
CodeSubmittedMsg is emitted when the user submits the verification code.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the authentication flow component.
func New ¶
func New(r theme.Roles, authorizer *telegram.TUIAuthorizer) Model
New creates a new auth model.
func (*Model) SetError ¶
SetError shows an error message on the auth screen (e.g. a failed login attempt surfaced from the Telegram client).
type PasswordSubmittedMsg ¶
type PasswordSubmittedMsg struct {
Password string
}
PasswordSubmittedMsg is emitted when the user submits their 2FA password.
type PhoneSubmittedMsg ¶
type PhoneSubmittedMsg struct {
Phone string
}
PhoneSubmittedMsg is emitted when the user submits their phone number.
Click to show internal directories.
Click to hide internal directories.