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

Function workosApiUrlOptions

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

Source from the content-addressed store, hash-verified

384 * emulator with zero code substitution.
385 */
386export const workosApiUrlOptions = (
387 url: string | undefined,
388): { apiHostname?: string; port?: number; https?: boolean } => {
389 if (!url) return {};
390 const parsed = new URL(url);
391 return {
392 apiHostname: parsed.hostname,
393 ...(parsed.port ? { port: Number(parsed.port) } : {}),
394 https: parsed.protocol === "https:",
395 };
396};
397
398// ---------------------------------------------------------------------------
399// Service

Callers 1

workos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected