MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / fixedImpl

Function fixedImpl

packages/server/test/auth-middleware.e2e.test.ts:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const TOKEN = 'test-token';
12
13function fixedImpl(): IAuthTokenService {
14 return {
15 _serviceBrand: undefined,
16 getToken: () => TOKEN,
17 isValid: async (candidate) => candidate === TOKEN,
18 };
19}
20
21describe('createAuthHook (onRequest middleware)', () => {
22 let app: FastifyInstance;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected