MCPcopy Index your code

hub / github.com/boxyhq/saas-starter-kit / functions

Functions590 in github.com/boxyhq/saas-starter-kit

↓ 65 callersMethodgoto
(productId?: string)
tests/e2e/support/fixtures/sso-page.ts:95
↓ 29 callersMethodcredentialLogin
(email: string, password: string)
tests/e2e/support/fixtures/login-page.ts:94
↓ 28 callersFunctionthrowIfNoTeamAccess
( req: NextApiRequest, res: NextApiResponse )
models/team.ts:321
↓ 28 callersFunctionthrowIfNotAllowed
( user: Pick<TeamMember, 'role'>, resource: Resource, action: Action )
models/user.ts:104
↓ 28 callersFunctionvalidateWithSchema
( schema: ZSchema, data: any )
lib/zod/index.ts:6
↓ 27 callersFunctionrecordMetric
(metric: AppEvent)
lib/metrics.ts:12
↓ 26 callersMethodloggedInCheck
(teamSlug: string)
tests/e2e/support/fixtures/login-page.ts:89
↓ 14 callersFunctionsendAudit
(request: Request)
lib/retraced.ts:51
↓ 13 callersFunctioncanAccess
(resource: Resource, actions: Action[])
hooks/useCanAccess.ts:8
↓ 13 callersFunctiongetSession
( req: NextApiRequest | GetServerSidePropsContext['req'], res: NextApiResponse | GetServerSidePropsContext
lib/session.ts:10
↓ 12 callersFunctiongetUser
(key: { id: string } | { email: string })
models/user.ts:49
↓ 12 callersFunctionprintTable
(data, columns)
delete-team.js:528
↓ 11 callersFunctionisAuthProviderEnabled
(provider: AUTH_PROVIDER)
lib/auth.ts:18
↓ 9 callersFunctionupdateUser
({ where, data })
models/user.ts:29
↓ 9 callersFunctionuseTeam
(slug?: string)
hooks/useTeam.ts:7
↓ 7 callersFunctionapplyTheme
(theme: Theme)
lib/theme.ts:13
↓ 7 callersFunctionnormalizeUser
(user)
models/user.ts:10
↓ 6 callersFunctionfindOrCreateApp
(name: string, uid: string)
lib/svix.ts:9
↓ 6 callersMethodgetConnections
(params: GetConnectionsQuery)
lib/jackson/sso/hosted.ts:33
↓ 6 callersFunctiongetCurrentUserWithTeam
( req: NextApiRequest, res: NextApiResponse )
models/team.ts:434
↓ 6 callersMethodisSaveButtonDisabled
()
tests/e2e/support/fixtures/settings-page.ts:62
↓ 6 callersFunctionsendEmail
(data: EmailData)
lib/email/sendEmail.ts:22
↓ 6 callersFunctionsignIn
({ user, account, profile })
lib/nextAuth.ts:286
↓ 5 callersFunctionaddTeamMember
( teamId: string, userId: string, role: Role )
models/team.ts:53
↓ 5 callersFunctiongenerateToken
(length = 64)
lib/server-common.ts:15
↓ 5 callersMethodinvitationAcceptPromptVisible
(invitingCompany: string)
tests/e2e/support/fixtures/login-page.ts:148
↓ 5 callersMethodopenEditSSOConnectionView
()
tests/e2e/support/fixtures/sso-page.ts:209
↓ 5 callersMethodssoLogin
(email: string, errorCase = false)
tests/e2e/support/fixtures/login-page.ts:101
↓ 5 callersFunctionuseCanAccess
()
hooks/useCanAccess.ts:5
↓ 5 callersFunctionuseInvitation
(token?: string)
hooks/useInvitation.ts:9
↓ 5 callersFunctionuseTeams
()
hooks/useTeams.ts:5
↓ 4 callersMethodcheckEmptyConnectionList
()
tests/e2e/support/fixtures/sso-page.ts:106
↓ 4 callersFunctioncountTeamMembers
({ where })
models/teamMember.ts:3
↓ 4 callersFunctionexceededLoginAttemptsThreshold
(user: User)
lib/accountLock.ts:78
↓ 4 callersFunctionforceConsume
(response)
lib/server-common.ts:5
↓ 4 callersFunctiongetInvitation
( key: { token: string } | { id: string } )
models/invitation.ts:67
↓ 4 callersFunctiongetTeam
(key: { id: string } | { slug: string })
models/team.ts:41
↓ 4 callersFunctiongetTeamMember
(userId: string, slug: string)
models/team.ts:416
↓ 4 callersMethodgotoInviteLink
(invitationLink: string, invitingCompany: string)
tests/e2e/support/fixtures/login-page.ts:141
↓ 4 callersFunctionisEmailAllowed
(email: string)
lib/email/utils.ts:12
↓ 4 callersMethodisLoggedIn
()
tests/e2e/support/fixtures/settings-page.ts:48
↓ 4 callersFunctionname
(length: number = maxLengthPolicies.name)
lib/zod/primitives.ts:41
↓ 4 callersMethodnavigateToEditConnection
()
tests/e2e/support/fixtures/directory-sync-page.ts:170
↓ 4 callersMethodopenInviteModal
()
tests/e2e/support/fixtures/member-page.ts:82
↓ 4 callersFunctionremoveTeamMember
(teamId: string, userId: string)
models/team.ts:76
↓ 4 callersFunctionsendEvent
( appId: string, eventType: AppEvent, payload: Record<string, unknown> )
lib/svix.ts:37
↓ 4 callersFunctionslugify
(text: string)
lib/server-common.ts:33
↓ 4 callersFunctionuseTheme
()
hooks/useTheme.ts:11
↓ 3 callersMethodacceptInvitation
()
tests/e2e/support/fixtures/login-page.ts:158
↓ 3 callersMethodcheckCurrentSession
()
tests/e2e/support/fixtures/security-page.ts:22
↓ 3 callersMethodclickSaveButton
()
tests/e2e/support/fixtures/settings-page.ts:92
↓ 3 callersFunctioncreateDatabaseSession
( user, req: NextApiRequest | GetServerSidePropsContext['req'], res: NextApiResponse | GetServerSideProp
lib/nextAuth.ts:237
↓ 3 callersFunctioncreateRandomUser
( email: string | undefined = undefined, password: string | undefined = undefined )
prisma/seed.ts:27
↓ 3 callersMethodcreateSSOConnection
({ metadataUrl, oidcMetadata, oidcDiscoveryUrl, oidcClientId, oidcClientSecret, provid
tests/e2e/support/fixtures/sso-page.ts:110
↓ 3 callersFunctioncreateVerificationToken
({ identifier, expires, }: Pick<VerificationToken, 'identifier' | 'expires'>)
models/verificationToken.ts:5
↓ 3 callersMethoddeleteSSOConnection
()
tests/e2e/support/fixtures/sso-page.ts:247
↓ 3 callersFunctiondeleteVerificationToken
(token: string)
models/verificationToken.ts:26
↓ 3 callersFunctiondsyncManager
()
lib/jackson/dsync/index.ts:5
↓ 3 callersFunctionextractAuthToken
(req: NextApiRequest)
lib/server-common.ts:22
↓ 3 callersFunctionextractClientId
(req: NextApiRequest)
lib/guards/team-sso.ts:12
↓ 3 callersMethodfillDomain
(domain: string)
tests/e2e/support/fixtures/settings-page.ts:120
↓ 3 callersMethodfillEmailForInvite
(email: string)
tests/e2e/support/fixtures/member-page.ts:91
↓ 3 callersMethodfillNewApiKeyName
(name: string)
tests/e2e/support/fixtures/api-keys-page.ts:52
↓ 3 callersMethodfillTeamName
(teamName: string)
tests/e2e/support/fixtures/settings-page.ts:58
↓ 3 callersMethodfillTeamSlug
(teamSlug: string)
tests/e2e/support/fixtures/settings-page.ts:106
↓ 3 callersFunctiongetCurrentUser
( req: NextApiRequest, res: NextApiResponse )
models/user.ts:120
↓ 3 callersFunctiongetStripeCustomerId
(teamMember, session?: any)
lib/stripe.ts:7
↓ 3 callersFunctiongetTeams
(userId: string)
models/team.ts:150
↓ 3 callersMethodgotoSection
(pageName: 'security' | 'api-keys')
tests/e2e/support/fixtures/settings-page.ts:173
↓ 3 callersFunctionhashPassword
(password: string)
lib/auth.ts:6
↓ 3 callersFunctionisInvitationExpired
(expires: Date)
models/invitation.ts:115
↓ 3 callersMethodisSettingsPageVisible
()
tests/e2e/support/fixtures/settings-page.ts:52
↓ 3 callersFunctionmutateTeams
()
hooks/useTeams.ts:13
↓ 3 callersFunctionmutateWebhooks
()
hooks/useWebhooks.ts:14
↓ 3 callersFunctionssoManager
()
lib/jackson/sso/index.ts:5
↓ 3 callersFunctionthrowIfNoAccessToConnection
({ teamId, clientId, }: GuardOptions)
lib/guards/team-sso.ts:25
↓ 3 callersFunctionthrowIfNoAccessToDirectory
({ teamId, directoryId, }: GuardOptions)
lib/guards/team-dsync.ts:10
↓ 3 callersFunctionuseWebhooks
(slug: string)
hooks/useWebhooks.ts:6
↓ 3 callersFunctionvalidateRecaptcha
(token?: string)
lib/recaptcha.ts:4
↓ 2 callersMethodapiKeyVisible
(name: string)
tests/e2e/support/fixtures/api-keys-page.ts:60
↓ 2 callersFunctionauthProviderEnabled
()
lib/auth.ts:22
↓ 2 callersMethodcheckOtherSession
()
tests/e2e/support/fixtures/security-page.ts:26
↓ 2 callersMethodcreateConnection
(params: any)
lib/jackson/sso/hosted.ts:16
↓ 2 callersFunctioncreateEventType
(eventType: string)
lib/svix.ts:52
↓ 2 callersFunctioncreateInvitation
( params: Omit< Invitation, 'id' | 'token' | 'expires' | 'createdAt' | 'updatedAt' > )
models/invitation.ts:90
↓ 2 callersMethodcreateNewAccountViaInviteLink
( name: string, email: string, password: string, invitingCompany: string )
tests/e2e/support/fixtures/login-page.ts:171
↓ 2 callersFunctioncreateTeam
(param: { userId: string; name: string; slug: string; })
models/team.ts:10
↓ 2 callersFunctioncreateUser
(data: { name: string; email: string; password?: string; emailVerified?: Date | null; })
models/user.ts:18
↓ 2 callersMethoddeleteConnection
(params: DelConnectionsQuery)
lib/jackson/sso/hosted.ts:65
↓ 2 callersFunctiondeleteInvitation
( key: { token: string } | { id: string } )
models/invitation.ts:107
↓ 2 callersFunctiondeleteManySessions
({ where })
models/session.ts:3
↓ 2 callersFunctiondeleteUser
(key: { id: string } | { email: string })
models/user.ts:71
↓ 2 callersFunctionextractEmailDomain
(email: string)
lib/email/utils.ts:20
↓ 2 callersFunctionfindWebhook
(appId: string, endpointId: string)
lib/svix.ts:25
↓ 2 callersFunctiongetActiveSubscriptions
(team)
delete-team.js:342
↓ 2 callersFunctiongetAndVerifyInvitation
(email: string)
tests/e2e/settings/members.spec.ts:240
↓ 2 callersFunctiongetAuthOptions
( req: NextApiRequest | GetServerSidePropsContext['req'], res: NextApiResponse | GetServerSidePropsContext
lib/nextAuth.ts:261
↓ 2 callersMethodgetConnectionById
(directoryId: string)
lib/jackson/dsync/hosted.ts:92
↓ 2 callersFunctiongetConnections
(tenant)
delete-team.js:414
↓ 2 callersFunctiongetRetracedClient
()
lib/retraced.ts:35
next →1–100 of 590, ranked by callers