Skip to content

Commit 9098f0b

Browse files
committed
fix(credentials): exclude regular login methods from credential sync
1 parent 523aff8 commit 9098f0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/lib/credentials/oauth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { account, credential, credentialMember } from '@sim/db/schema'
33
import { and, eq, inArray, notInArray } from 'drizzle-orm'
44
import { getServiceConfigByProviderId } from '@/lib/oauth'
55

6-
/** Provider IDs that are not real OAuth integrations (e.g. Better Auth's password provider) */
7-
const NON_OAUTH_PROVIDER_IDS = ['credential'] as const
6+
/** Provider IDs that are not real OAuth integrations (login-only social providers and password) */
7+
const NON_OAUTH_PROVIDER_IDS = ['credential', 'google', 'github'] as const
88

99
interface SyncWorkspaceOAuthCredentialsForUserParams {
1010
workspaceId: string

0 commit comments

Comments
 (0)