MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / resolveClientId

Function resolveClientId

packages/cli/src/auth/oauth.ts:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97/** Read the client_id, throwing `ErrOAuthNotConfigured` when unset. */
98export function resolveClientId(): string {
99 const override = process.env["HYPERFRAMES_OAUTH_CLIENT_ID"];
100 const id = override && override.length > 0 ? override : DEFAULT_CLIENT_ID;
101 if (!id || id.length === 0) throw ErrOAuthNotConfigured();
102 return id;
103}
104
105/**
106 * For command-entry points: throw the standard `ErrOAuthNotConfigured`

Callers 5

refreshTokensFunction · 0.85
revokeTokensFunction · 0.85
oauth.test.tsFile · 0.85

Calls 1

ErrOAuthNotConfiguredFunction · 0.85

Tested by

no test coverage detected