Skip to content

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;
}
NameTypeDescriptionDefined in
kind"apiKey"Authentication method using an API keysrc/types/auth.ts:8
apiKeystringThe API key valuesrc/types/auth.ts:10
ts
{
  kind: "oauth2";
  accessToken: string;
}
NameTypeDescriptionDefined in
kind"oauth2"Authentication method using OAuth2src/types/auth.ts:14
accessTokenstringThe OAuth2 access tokensrc/types/auth.ts:16