package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Apr 2, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsLoggedIn checks if credentials exist.
LoadToken returns a valid token, refreshing if needed.
Login runs the full OAuth 2.0 authorization code flow.
Logout removes stored credentials.
type StoredAuth struct {
ClientID string `json:"client_id"`
ClientSecret string `json:"client_secret"`
Token *oauth2.Token `json:"token"`
}
StoredAuth persists OAuth credentials.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.