fix(credentials): exclude regular login methods from credential sync

This commit is contained in:
Vikhyath Mondreti
2026-03-09 18:03:25 -07:00
parent 523aff8ab0
commit 9098f0b805

View File

@@ -3,8 +3,8 @@ import { account, credential, credentialMember } from '@sim/db/schema'
import { and, eq, inArray, notInArray } from 'drizzle-orm'
import { getServiceConfigByProviderId } from '@/lib/oauth'
/** Provider IDs that are not real OAuth integrations (e.g. Better Auth's password provider) */
const NON_OAUTH_PROVIDER_IDS = ['credential'] as const
/** Provider IDs that are not real OAuth integrations (login-only social providers and password) */
const NON_OAUTH_PROVIDER_IDS = ['credential', 'google', 'github'] as const
interface SyncWorkspaceOAuthCredentialsForUserParams {
workspaceId: string