Skip to content

Commit

Permalink
🐛 Connector set fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Jul 19, 2024
1 parent c4f1ad6 commit c59071b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion apps/magic-link/src/lib/ProviderModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const ProviderModal = () => {
return [{
connector_name: connector_name,
category: category,
status: value == null ? "false" : String(value)
status: value == null ? "true" : String(value)
}];
}
return [];
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/authUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ interface AuthParams {
// make sure to check if client has own credentials to connect or panora managed ones
export const constructAuthUrl = async ({ projectId, linkedUserId, providerName, returnUrl, apiUrl, vertical }: AuthParams) => {
const redirectUrlIngressWhenLocalDev = CONNECTORS_METADATA[vertical][providerName].options?.local_redirect_uri_in_https === true && 'https://prepared-wildcat-infinitely.ngrok-free.app';
console.log("apiURL is "+ apiUrl)
const localEnv = apiUrl.startsWith("http://localhost:3000") || apiUrl.includes("localhost");
const encodedRedirectUrl = encodeURIComponent(`${localEnv && redirectUrlIngressWhenLocalDev ? redirectUrlIngressWhenLocalDev : apiUrl}/connections/oauth/callback`);
const state = encodeURIComponent(JSON.stringify({ projectId, linkedUserId, providerName, vertical, returnUrl }));
Expand Down

0 comments on commit c59071b

Please sign in to comment.