UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

15 lines (14 loc) • 540 B
/** * 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>;