get_credentials() retrieves the authenticated user’s credentials for your tools.
Signature
The signature depends on your auth type:Return value
| Auth type | Returns |
|---|---|
oauth | {"access_token": "..."} |
cred | Keys from config.yaml credentials |
none | Keys from environment variables |
Usage
OAuth
User credentials
Environment variables
Local development
For local testing,get_credentials() reads from LOCAL_* environment variables when ENVIRONMENT=local:
Errors
No authentication context
- Token validation failed
- Middleware not configured correctly
