From 376f7cb571e624a4cf861fdf7e8c3822aa77c769 Mon Sep 17 00:00:00 2001 From: Waleed Date: Wed, 21 Jan 2026 22:44:30 -0800 Subject: [PATCH] fix(auth): add genericOAuth providers to trustedProviders (#2937) --- apps/sim/lib/auth/auth.ts | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/apps/sim/lib/auth/auth.ts b/apps/sim/lib/auth/auth.ts index 518ecf930..bc1c10c88 100644 --- a/apps/sim/lib/auth/auth.ts +++ b/apps/sim/lib/auth/auth.ts @@ -400,7 +400,6 @@ export const auth = betterAuth({ enabled: true, allowDifferentEmails: true, trustedProviders: [ - // Standard OAuth providers 'google', 'github', 'email-password', @@ -416,8 +415,32 @@ export const auth = betterAuth({ 'hubspot', 'linkedin', 'spotify', - - // Common SSO provider patterns + 'google-email', + 'google-calendar', + 'google-drive', + 'google-docs', + 'google-sheets', + 'google-forms', + 'google-vault', + 'google-groups', + 'vertex-ai', + 'github-repo', + 'microsoft-teams', + 'microsoft-excel', + 'microsoft-planner', + 'outlook', + 'onedrive', + 'sharepoint', + 'jira', + 'airtable', + 'dropbox', + 'salesforce', + 'wealthbox', + 'zoom', + 'wordpress', + 'linear', + 'shopify', + 'trello', ...SSO_TRUSTED_PROVIDERS, ], },