MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / createGoogleOAuthClient

Function createGoogleOAuthClient

apps/web/src/lib/integrations/google-service.ts:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function createGoogleOAuthClient(): OAuth2Client {
58 if (!GOOGLE_WORKSPACE_OAUTH_CLIENT_ID || !GOOGLE_WORKSPACE_OAUTH_CLIENT_SECRET) {
59 throw new Error('Google Workspace OAuth credentials are not configured');
60 }
61
62 const redirectUri = resolveGoogleOAuthRedirectURI();
63
64 return new OAuth2Client({
65 clientId: GOOGLE_WORKSPACE_OAUTH_CLIENT_ID,
66 clientSecret: GOOGLE_WORKSPACE_OAUTH_CLIENT_SECRET,
67 redirectUri,
68 });
69}
70
71export function buildGoogleOAuthUrl(
72 state: string,

Callers 2

buildGoogleOAuthUrlFunction · 0.85
exchangeGoogleOAuthCodeFunction · 0.85

Calls 1

Tested by

no test coverage detected