MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / createError

Function createError

apps/api/src/utils/auth.ts:66–74  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

64 }
65
66 const createError = (message: string) =>
67 new SdkAuthError(message, {
68 clientId,
69 clientSecret:
70 typeof clientSecret === 'string'
71 ? `${clientSecret.slice(0, 5)}...${clientSecret.slice(-5)}`
72 : 'none',
73 origin,
74 });
75
76 if (!clientId) {
77 throw createError('Ingestion: Missing client id');

Callers 3

handleApiRouteFunction · 0.85
[...openpanel].tsFile · 0.85
validateSdkRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected