MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / lazySigningAuth

Function lazySigningAuth

server/src/training-agent/index.ts:127–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125// Lazy so the compliance test JWKS isn't read at module import time.
126let _signingAuth: Authenticator | null = null;
127function lazySigningAuth(): Authenticator {
128 return (req) => {
129 if (!_signingAuth) _signingAuth = buildRequestSigningAuthenticator();
130 return _signingAuth(req);
131 };
132}
133
134let _strictSigningAuth: Authenticator | null = null;
135function lazyStrictSigningAuth(): Authenticator {

Callers 1

Calls 1

Tested by

no test coverage detected