Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OAuthLogin ¶
OAuthLogin performs an OAuth2 PKCE login flow to authorize the CLI
func OAuthLoginWithFullOptions ¶
func OAuthLoginWithFullOptions(opts OAuthOptions) error
OAuthLoginWithFullOptions performs an OAuth2 PKCE login flow with full options control
func OAuthLoginWithOptions ¶
OAuthLoginWithOptions performs an OAuth2 PKCE login flow with additional options
func ReauthenticateLogin ¶ added in v0.12.0
ReauthenticateLogin performs a full browser-based OAuth flow to get new tokens for an existing login. This is used when the refresh token is expired or invalid.
func RefreshAccessToken ¶
RefreshAccessToken manually renews an access token using the refresh token. This is used by the "tea login oauth-refresh" command for explicit token refresh. For automatic threshold-based refresh, use login.Client() which handles it internally.
Types ¶
Click to show internal directories.
Click to hide internal directories.