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

Function needsSessionToken

site/src/modules/apps/apps.ts:165–172  ·  view source on GitHub ↗
(app: ExternalWorkspaceApp)

Source from the content-addressed store, hash-verified

163};
164
165export const needsSessionToken = (app: ExternalWorkspaceApp) => {
166 // HTTP links should never need the session token, since Cookies
167 // handle sharing it when you access the Coder Dashboard. We should
168 // never be forwarding the bare session token to other domains!
169 const isHttp = app.url.startsWith("http");
170 const requiresSessionToken = app.url.includes(SESSION_TOKEN_PLACEHOLDER);
171 return requiresSessionToken && !isHttp;
172};

Callers 4

AppLinkFunction · 0.90
useAppLinkFunction · 0.90
AppMenuItemFunction · 0.90
getAppHrefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected