PlatformMcpPreAuthOption
@tsed/platform-mcp
Usage
typescript
import { PlatformMcpPreAuthOption } from "@tsed/platform/platform-mcp/src/common/interfaces/PlatformMcpPreAuth";See /packages/platform/platform-mcp/src/common/interfaces/PlatformMcpPreAuth.ts.
Overview
ts
type PlatformMcpPreAuthOption = (($ctx: PlatformContext) => PlatformMcpPreAuthResult) | TokenProvider<PlatformMcpPreAuth>;Description
Accepted forms of the auth.preAuth option: a function, or a DI token resolving to a {@link PlatformMcpPreAuth} provider.