Skip to content

Commit

Permalink
remocing redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
pellicceama committed Feb 13, 2025
1 parent ef9b5bd commit 155ff58
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions connectors/connector-google/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,6 @@ export const googleServer = {
{} as Record<string, string | undefined>,
)

const orgId = (config as any).orgId

if (!orgId) {
throw new Error('orgId is required in preconnect() config param')
}

const redirect_uri =
orgId === 'org_2n4lEDaqfBgyEtFmbsDnFFppAR5' ||
orgId === 'org_2n4lU7bvAbbAOqVSHhCNKCAYmft'
? 'https://agents.doubleo.ai/connect/callback'
: undefined

if (
context.integrationExternalId &&
context.integrationExternalId in integrationScopesMap
Expand All @@ -134,7 +122,8 @@ export const googleServer = {
context.integrationExternalId as keyof typeof integrationScopesMap
],
),
...(redirect_uri ? {redirect_uri} : {}),
// could be calculated from (config as any).orgId
// ...(redirect_uri ? {redirect_uri} : {}),
},
}
console.log('[googleServer] authParams', authParams)
Expand Down

0 comments on commit 155ff58

Please sign in to comment.