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

Function assertOAuthConfiguredOrExit

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

Source from the content-addressed store, hash-verified

109 * errors so callers can surface programmer bugs.
110 */
111export function assertOAuthConfiguredOrExit(): void {
112 try {
113 resolveClientId();
114 } catch (err) {
115 if (isAuthError(err) && err.code === "OAUTH_NOT_CONFIGURED") {
116 console.error(`Error: ${err.message}`);
117 if (err.hint) console.error(err.hint);
118 process.exit(1);
119 }
120 throw err;
121 }
122}
123
124export async function startAuthorizationCodeFlow(
125 opts: AuthorizeFlowOptions = {},

Callers 2

runOAuthLoginFunction · 0.85
runFunction · 0.85

Calls 3

resolveClientIdFunction · 0.85
isAuthErrorFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected