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

Function workosApiUrlOptions

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

Source from the content-addressed store, hash-verified

119 * emulator with zero code substitution.
120 */
121export const workosApiUrlOptions = (
122 url: string | undefined,
123): { apiHostname?: string; port?: number; https?: boolean } => {
124 if (!url) return {};
125 const parsed = new URL(url);
126 return {
127 apiHostname: parsed.hostname,
128 ...(parsed.port ? { port: Number(parsed.port) } : {}),
129 https: parsed.protocol === "https:",
130 };
131};
132
133// ---------------------------------------------------------------------------
134// Service

Callers 1

workos.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected