MCPcopy Index your code
hub / github.com/coder/coder / findSessionToken

Function findSessionToken

site/e2e/helpers.ts:919–926  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

917}
918
919export const findSessionToken = async (page: Page): Promise<string> => {
920 const cookies = await page.context().cookies();
921 const sessionCookie = cookies.find((c) => c.name === "coder_session_token");
922 if (!sessionCookie) {
923 throw new Error("session token not found");
924 }
925 return sessionCookie.value;
926};
927
928export const echoResponsesWithParameters = (
929 richParameters: RichParameter[],

Callers 3

setupApiCallsFunction · 0.90
sshIntoWorkspaceFunction · 0.85
updateTemplateFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected