@backblaze-labs/b2-mcp
    Preparing search index...

    Function authenticateOAuthRequest

    • Authenticate an MCP HTTP request with OAuth bearer-token verification.

      Parameters

      Returns Promise<AuthInfo | Response>

      Verified auth info, or an OAuth rejection response.

      Successful verification returns MCP AuthInfo; failed verification returns a ready-to-send OAuth challenge/error response. This shape lets HTTP pipelines fail closed without throwing raw verification errors across runtime boundaries.

      const result = await authenticateOAuthRequest(request, config);
      if (result instanceof Response) return result;