Skip to main content

Module auth

Module auth 

Source
Expand description

thndrs login, thndrs logout, and thndrs auth command definitions.

Structs§

LoginCommand
Store one provider credential.
LogoutCommand
Remove one stored provider credential.

Enums§

AuthCommand
Authentication inspection commands.
ChatGptOAuthMethod
ChatGPT Codex OAuth method for the headless login command.
CredentialScope
Scope for a stored credential.
ProviderCredentialHealth
Result of a lightweight provider credential check.

Functions§

check_chatgpt_codex_auth
Check the resolved ChatGPT Codex OAuth credential with the model catalog.
check_provider_key
Check a provider key with a lightweight provider request.
confirm
Ask for yes/no confirmation.
credential_path
Resolve the credential file path for a storage scope.
credential_rejected_error
Build the safe recovery error for a rejected stored credential.
credential_rejected_error_for_source
Build the safe recovery error for a rejected credential with known precedence.
prompt_scope
Prompt for the credential storage scope.
read_hidden_api_key
Read an API key from the terminal without echoing typed characters.
run_auth
Run thndrs auth.
run_chatgpt_codex_login
Run the shared ChatGPT Codex OAuth login flow.
run_chatgpt_codex_login_with_method
Run ChatGPT Codex login with an explicit OAuth method.
run_login
Run thndrs login.
run_logout
Run thndrs logout.
validate_provider_key
Validate a provider key without persisting provider payloads.
write_auth_status
Write redacted provider credential status.