Skip to main content
get_credentials() retrieves the authenticated user’s credentials for your tools.

Signature

The signature depends on your auth type:

Return value

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

The request wasn’t authenticated. This happens if:
  • Token validation failed
  • Middleware not configured correctly

Credentials not found

The user hasn’t connected their account. For OAuth, they need to authorize via the Gumstack UI first.