MCP TypeScript SDK (V2)
    Preparing search index...
    • Prepares token request parameters for an authorization code exchange.

      This is the default implementation used by fetchToken when the provider doesn't implement prepareTokenRequest.

      Parameters

      • authorizationCode: string

        The authorization code received from the authorization endpoint

      • codeVerifier: string

        The PKCE code verifier

      • redirectUri: string | URL

        The redirect URI used in the authorization request

      Returns URLSearchParams

      URLSearchParams for the authorization_code grant