Documentation
¶
Overview ¶
Package config manages persistent configuration and token storage for strava-cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ClientID string `json:"client_id"`
ClientSecret string `json:"client_secret"`
RedirectURI string `json:"redirect_uri,omitempty"`
Tokens Tokens `json:"tokens,omitempty"`
PendingAuth *PendingAuth `json:"pending_auth,omitempty"`
}
Config is the full persisted configuration.
type PendingAuth ¶
type PendingAuth struct {
State string `json:"state"`
RedirectURI string `json:"redirect_uri"`
ExpiresAt int64 `json:"expires_at"` // Unix timestamp
}
PendingAuth holds state between step 1 and step 2 of a remote (two-step) login.
Click to show internal directories.
Click to hide internal directories.