Skip to main content

SessionAuthenticator

@webda/mcp


Class: SessionAuthenticator

Defined in: packages/mcp/src/auth.ts:28

Default authenticator: the Webda session already loaded for the request (cookie session, filled by RequestFilters); anonymous callers get an empty session.

Implements​

Constructors​

Constructor​

new SessionAuthenticator(): SessionAuthenticator

Returns​

SessionAuthenticator

Methods​

authenticate()​

authenticate(ctx): Promise<Session>

Defined in: packages/mcp/src/auth.ts:33

Parameters​

ctx​

WebContext

the HTTP request context

Returns​

Promise<Session>

the request session

Implementation of​

McpAuthenticator.authenticate