MCPcopy Create free account
hub / github.com/coder/coder / setupApiCalls

Function setupApiCalls

site/e2e/api.ts:18–22  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

16let currentOrgId: string;
17
18export const setupApiCalls = async (page: Page) => {
19 API.setHost(`http://127.0.0.1:${coderPort}`);
20 const token = await findSessionToken(page);
21 API.setSessionToken(token);
22};
23
24export const getCurrentOrgId = async (): Promise<string> => {
25 if (currentOrgId) {

Calls 1

findSessionTokenFunction · 0.90

Tested by

no test coverage detected