MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / fetch

Function fetch

apps/extension/src/shared/auth.test.ts:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 it('creates a device auth request using app mode', async () => {
135 const seenRequests: string[] = [];
136 const fetch: FetchLike = input => {
137 seenRequests.push(String(input));
138 return jsonResponse(
139 {
140 code: 'ABCD-2345',
141 verificationUrl: 'https://app.kilo.ai/device-auth?code=ABCD-2345&app=1',
142 },
143 { status: 200 }
144 );
145 };
146
147 await expect(
148 createDeviceAuthRequest({ apiBaseUrl: 'https://app.kilo.ai/', fetch })

Callers 15

fetchKiloGatewayModelsFunction · 0.70
fetchKiloOrganizationsFunction · 0.70
createDeviceAuthRequestFunction · 0.70
pollDeviceAuthCodeFunction · 0.70
validateAuthTokenFunction · 0.70
assetToPickedAttachmentFunction · 0.50
uploadOneFunction · 0.50
tickFunction · 0.50
useDeviceAuthFunction · 0.50
useUnreadCountsFunction · 0.50

Calls 3

pushMethod · 0.80
jsonResponseFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected