MCPcopy Create free account
hub / github.com/cloudflare/serverless-registry / constructor

Method constructor

src/user.ts:65–67  ·  view source on GitHub ↗
(private credentials: AuthenticatorCredentials[])

Source from the content-addressed store, hash-verified

63export class UserAuthenticator implements Authenticator {
64 authmode: string;
65 constructor(private credentials: AuthenticatorCredentials[]) {
66 this.authmode = "UserAuthenticator";
67 }
68
69 async checkCredentials(r: Request): Promise<AuthenticatorCheckCredentialsResponse> {
70 const res = stripUsernamePasswordFromHeader(r);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected