Documentation
¶
Overview ¶
Package auth 提供 kite 的登录态命令:扫码/手机号登录、登录状态、登出。
Index ¶
- func NewLoginCellphoneCommand(k *kit.Kit) *cobra.Command
- func NewLoginCommand(k *kit.Kit) *cobra.Command
- func NewLoginRefreshCommand(k *kit.Kit) *cobra.Command
- func NewLoginStatusCommand(k *kit.Kit) *cobra.Command
- func NewLogoutCommand(k *kit.Kit) *cobra.Command
- func NewSendCaptchaCommand(k *kit.Kit) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoginCellphoneCommand ¶
NewLoginCellphoneCommand 手机号验证码登录,成功后同样落盘会话。
func NewLoginCommand ¶
NewLoginCommand 扫码登录:取二维码 → 轮询 → cookie 持久化到本地会话文件。
func NewLoginRefreshCommand ¶ added in v0.4.0
NewLoginRefreshCommand 刷新登录态,把续期后的 cookie 写回本地会话文件。 只刷新会话文件里的登录态;NETEASE_COOKIE 环境变量的 cookie 由调用方自己保存,不在此处理。
func NewLoginStatusCommand ¶
NewLoginStatusCommand 查看当前登录态。 人类模式 cookie 分段脱敏;--json/管道输出完整值(脚本取凭证是合法用途)。
func NewLogoutCommand ¶
NewLogoutCommand 登出并删除本地会话文件。 远端登出失败(如 cookie 已过期)仅告警不阻断本地清理。
Types ¶
This section is empty.