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

Function badToken

packages/server/test/rate-limit.test.ts:44–50  ·  view source on GitHub ↗
(ip: string)

Source from the content-addressed store, hash-verified

42}
43
44function badToken(ip: string): { method: 'GET'; url: string; headers: Record<string, string> } {
45 return {
46 method: 'GET',
47 url: '/api/v1/sessions',
48 headers: { 'x-forwarded-for': ip, authorization: 'Bearer wrong-token' },
49 };
50}
51
52describe('createAuthHook rate limiting (M6.4)', () => {
53 let app: FastifyInstance;

Callers 1

rate-limit.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected