@scalar/api-client
Version:
the open source API testing client
14 lines • 709 B
TypeScript
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
import type { ErrorResponse } from '../../../../libs/errors.js';
import type { OAuthFlowsObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
/**
* Authorize oauth2 flow
*
* @returns the accessToken
*/
export declare const authorizeOauth2: (flows: OAuthFlowsObjectSecret, type: keyof OAuthFlowsObjectSecret, selectedScopes: string[],
/** We use the active server to set a base for relative redirect uris */
activeServer: ServerObject | null,
/** If we want to use the proxy */
proxyUrl: string) => Promise<ErrorResponse<string>>;
//# sourceMappingURL=oauth.d.ts.map