mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 21:10:51 +08:00
20 lines
736 B
Go
20 lines
736 B
Go
package auth
|
|
|
|
// Status represents the lifecycle state of an Auth entry.
|
|
type Status string
|
|
|
|
const (
|
|
// StatusUnknown means the auth state could not be determined.
|
|
StatusUnknown Status = "unknown"
|
|
// StatusActive indicates the auth is valid and ready for execution.
|
|
StatusActive Status = "active"
|
|
// StatusPending indicates the auth is waiting for an external action, such as MFA.
|
|
StatusPending Status = "pending"
|
|
// StatusRefreshing indicates the auth is undergoing a refresh flow.
|
|
StatusRefreshing Status = "refreshing"
|
|
// StatusError indicates the auth is temporarily unavailable due to errors.
|
|
StatusError Status = "error"
|
|
// StatusDisabled marks the auth as intentionally disabled.
|
|
StatusDisabled Status = "disabled"
|
|
)
|