@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
15 lines (14 loc) • 540 B
TypeScript
/**
* Bridge between auth providers and NeuroLink's server middleware.
* Converts an auth provider's authenticateToken() into the validate
* callback expected by the existing createAuthMiddleware.
*/
import type { AuthProvider } from "../types/index.js";
/**
* Create a validate function for server auth middleware from an auth provider.
*/
export declare function createAuthValidatorFromProvider(provider: AuthProvider): (token: string, ctx: unknown) => Promise<{
id: string;
email?: string;
roles?: string[];
} | null>;