@scalar/api-client
Version:
the open source API testing client
19 lines • 756 B
TypeScript
import type { SecurityScheme } from '@scalar/oas-utils/entities/spec';
/**
* Generates the headers, cookies and query params for selected security schemes
* In the future we can add customization for where the security is applied
*/
export declare const buildRequestSecurity: (securitySchemes?: SecurityScheme[], env?: object,
/** Include this parameter to set the placeholder for empty tokens */
emptyTokenPlaceholder?: string) => {
headers: Record<string, string>;
cookies: {
uid: string & import("zod").BRAND<"cookie">;
name: string;
value: string;
domain?: string | undefined;
path?: string | undefined;
}[];
urlParams: URLSearchParams;
};
//# sourceMappingURL=build-request-security.d.ts.map