@cyanheads/pubmed-mcp-server
Version:
Production-ready PubMed Model Context Protocol (MCP) server that empowers AI agents and research tools with comprehensive access to PubMed's article database. Enables advanced, automated LLM workflows for searching, retrieving, analyzing, and visualizing
18 lines • 843 B
TypeScript
/**
* @fileoverview Defines the interface for all authentication strategies.
* This interface establishes a contract for verifying authentication tokens,
* ensuring that any authentication method (JWT, OAuth, etc.) can be used
* interchangeably by the core authentication middleware.
* @module src/mcp-server/transports/auth/strategies/AuthStrategy
*/
import type { AuthInfo } from "../lib/authTypes.js";
export interface AuthStrategy {
/**
* Verifies an authentication token.
* @param token The raw token string extracted from the request.
* @returns A promise that resolves with the AuthInfo on successful verification.
* @throws {McpError} if the token is invalid, expired, or fails verification for any reason.
*/
verify(token: string): Promise<AuthInfo>;
}
//# sourceMappingURL=authStrategy.d.ts.map