mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(credentials): exclude regular login methods from credential sync
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user