MCPcopy Index your code
hub / github.com/CapSoftware/Cap / shouldUseLocalServerSession

Function shouldUseLocalServerSession

apps/desktop/src/utils/auth.ts:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53async function shouldUseLocalServerSession() {
54 const serverUrl = await getConfiguredServerUrl();
55 return shouldUseLocalServerSessionForUrl(
56 serverUrl,
57 clientEnv.VITE_SERVER_URL,
58 import.meta.env.DEV,
59 );
60}
61
62async function createSessionRequestUrl(
63 port: string | null,

Callers 1

createSignInMutationFunction · 0.85

Calls 2

getConfiguredServerUrlFunction · 0.70

Tested by

no test coverage detected