MCPcopy Index your code
hub / github.com/MiniMax-AI/cli / tokenResponse

Function tokenResponse

test/auth/oauth.test.ts:49–62  ·  view source on GitHub ↗
(overrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

47}
48
49function tokenResponse(overrides: Record<string, unknown> = {}) {
50 return {
51 status: 200,
52 ok: true,
53 headers: new Headers({ 'Content-Type': 'application/json' }),
54 json: async () => ({
55 status: 'success',
56 access_token: 'at-abcdef',
57 refresh_token: 'rt-abcdef',
58 expired_in: Date.now() + 86_400_000,
59 ...overrides,
60 }),
61 } as Response;
62}
63
64function errorResponse(status: number, body?: string) {
65 return {

Callers 2

mockDeviceCodeFlowFunction · 0.85
oauth.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected