MCPcopy Create free account
hub / github.com/codeaashu/claude-code / authenticate

Method authenticate

src/server/web/auth/adapter.ts:38–38  ·  view source on GitHub ↗

* Authenticate an IncomingMessage (HTTP or WebSocket upgrade). * Returns null when the request is unauthenticated.

(req: IncomingMessage)

Source from the content-addressed store, hash-verified

36 * Returns null when the request is unauthenticated.
37 */
38 authenticate(req: IncomingMessage): AuthUser | null;
39
40 /**
41 * Register login/callback/logout routes on the Express app.

Callers 1

pty-server.tsFile · 0.65

Implementers 3

ApiKeyAdaptersrc/server/web/auth/apikey-auth.ts
TokenAuthAdaptersrc/server/web/auth/token-auth.ts
OAuthAdaptersrc/server/web/auth/oauth-auth.ts

Calls

no outgoing calls

Tested by

no test coverage detected