MCPcopy Create free account
hub / github.com/simstudioai/sim / isOwnedByCaller

Function isOwnedByCaller

apps/sim/app/api/auth/sso/register/route.ts:76–82  ·  view source on GitHub ↗
(provider: {
      userId: string | null
      organizationId: string | null
    })

Source from the content-addressed store, hash-verified

74 }
75
76 const isOwnedByCaller = (provider: {
77 userId: string | null
78 organizationId: string | null
79 }): boolean => {
80 if (provider.userId === session.user.id && !provider.organizationId) return true
81 return orgId ? provider.organizationId === orgId : false
82 }
83
84 const findDomainConflict = async () =>
85 (

Callers 1

findDomainConflictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected