@AuthProvider class with type-specific authentication logic (OAuth, API key, bearer, basic, or custom).
Usage
Options
| Option | Type | Default | Description |
|---|---|---|---|
name | string | — | Required. The name of the auth provider |
project | string | — | Required. The project to add the auth provider to |
type | oauth | api-key | bearer | basic | custom | bearer | The authentication type |
directory | string | — | Subdirectory within src/auth/ |
Generated Code by Type
- API Key
- Bearer
- Basic
- OAuth
- Custom
{CONSTANT_NAME}_{SUFFIX} pattern (e.g., OPENAI_API_KEY, OPENAI_TOKEN).