MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / workosApiUrlOptions

Function workosApiUrlOptions

apps/cloud/src/auth/workos.ts:303–313  ·  view source on GitHub ↗
(
  url: string | undefined,
)

Source from the content-addressed store, hash-verified

301 * emulator with zero code substitution.
302 */
303export const workosApiUrlOptions = (
304 url: string | undefined,
305): { apiHostname?: string; port?: number; https?: boolean } => {
306 if (!url) return {};
307 const parsed = new URL(url);
308 return {
309 apiHostname: parsed.hostname,
310 ...(parsed.port ? { port: Number(parsed.port) } : {}),
311 https: parsed.protocol === "https:",
312 };
313};
314
315// ---------------------------------------------------------------------------
316// Service

Callers 1

workos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected