auth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package auth 提供 kite 的登录态命令:扫码/手机号登录、登录状态、登出。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginCellphoneCommand

func NewLoginCellphoneCommand(k *kit.Kit) *cobra.Command

NewLoginCellphoneCommand 手机号验证码登录,成功后同样落盘会话。

func NewLoginCommand

func NewLoginCommand(k *kit.Kit) *cobra.Command

NewLoginCommand 扫码登录:取二维码 → 轮询 → cookie 持久化到本地会话文件。

func NewLoginStatusCommand

func NewLoginStatusCommand(k *kit.Kit) *cobra.Command

NewLoginStatusCommand 查看当前登录态。 人类模式 cookie 分段脱敏;--json/管道输出完整值(脚本取凭证是合法用途)。

func NewLogoutCommand

func NewLogoutCommand(k *kit.Kit) *cobra.Command

NewLogoutCommand 登出并删除本地会话文件。 远端登出失败(如 cookie 已过期)仅告警不阻断本地清理。

func NewSendCaptchaCommand

func NewSendCaptchaCommand(k *kit.Kit) *cobra.Command

NewSendCaptchaCommand 发送手机验证码。

Types

This section is empty.

Directories

Path Synopsis
Package qrtui 提供扫码登录的 bubbletea 全屏界面。
Package qrtui 提供扫码登录的 bubbletea 全屏界面。

Jump to

Keyboard shortcuts

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