Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
func Login(commandCtx context.Context, opts LoginOptions) error
Login authenticates through a browser using PKCE and stores the resulting token. Browser launch failure leaves the authorization URL available for manual use.
func Logout ¶
Logout removes stored credentials after best-effort server revocation. An already absent token is not an error.
Types ¶
type LoginOptions ¶
type LoginOptions struct{ Timeout int }
LoginOptions sets the browser callback timeout in seconds.
type StatusOptions ¶
type StatusOptions struct{ JSON bool }
StatusOptions selects JSON output for authentication status.
Click to show internal directories.
Click to hide internal directories.