Type Alias: AuthConfig
ts
type AuthConfig =
| {
kind: "apiKey";
apiKey: string;
}
| {
kind: "oauth2";
accessToken: string;
};Defined in: src/types/auth.ts:5
Authentication configuration for API requests. Supports both API key and OAuth2 bearer token authentication.
Type Declaration
ts
{
kind: "apiKey";
apiKey: string;
}| Name | Type | Description | Defined in |
|---|---|---|---|
kind | "apiKey" | Authentication method using an API key | src/types/auth.ts:8 |
apiKey | string | The API key value | src/types/auth.ts:10 |
ts
{
kind: "oauth2";
accessToken: string;
}| Name | Type | Description | Defined in |
|---|---|---|---|
kind | "oauth2" | Authentication method using OAuth2 | src/types/auth.ts:14 |
accessToken | string | The OAuth2 access token | src/types/auth.ts:16 |