/** * OAuth Initiate Handler * * Initiates the OAuth 2.0 authorization code flow by: * 1. Validating the provider is supported and configured * 2. Generating a cryptographically secure state parameter for CSRF protection * 3. Creating an OAuth session to track the flow * 4. Building the provider's authorization URL * 5. Redirecting the user to the provider for authorization * * Route: GET /oauth/:provider/initiate?redirectUri={optional_redirect_url} */ import { GetHandler, RouteProps } from "@flink-app/flink"; import InitiateRequest from "../schemas/InitiateRequest"; /** * Path parameters for the handler */ interface PathParams { provider: string; [key: string]: string; } /** * Route configuration * Note: This handler is registered programmatically by the plugin * with dynamic provider parameter support */ export declare const Route: RouteProps; /** * OAuth Initiate Handler * * Starts the OAuth flow by generating state, creating a session, * and redirecting to the OAuth provider's authorization URL. */ declare const InitiateOAuth: GetHandler; export default InitiateOAuth;