Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/boxyhq/saas-starter-kit
/ functions
Functions
590 in github.com/boxyhq/saas-starter-kit
⨍
Functions
590
◇
Types & classes
94
↓ 65 callers
Method
goto
(productId?: string)
tests/e2e/support/fixtures/sso-page.ts:95
↓ 29 callers
Method
credentialLogin
(email: string, password: string)
tests/e2e/support/fixtures/login-page.ts:94
↓ 28 callers
Function
throwIfNoTeamAccess
( req: NextApiRequest, res: NextApiResponse )
models/team.ts:321
↓ 28 callers
Function
throwIfNotAllowed
( user: Pick<TeamMember, 'role'>, resource: Resource, action: Action )
models/user.ts:104
↓ 28 callers
Function
validateWithSchema
( schema: ZSchema, data: any )
lib/zod/index.ts:6
↓ 27 callers
Function
recordMetric
(metric: AppEvent)
lib/metrics.ts:12
↓ 26 callers
Method
loggedInCheck
(teamSlug: string)
tests/e2e/support/fixtures/login-page.ts:89
↓ 14 callers
Function
sendAudit
(request: Request)
lib/retraced.ts:51
↓ 13 callers
Function
canAccess
(resource: Resource, actions: Action[])
hooks/useCanAccess.ts:8
↓ 13 callers
Function
getSession
( req: NextApiRequest | GetServerSidePropsContext['req'], res: NextApiResponse | GetServerSidePropsContext
lib/session.ts:10
↓ 12 callers
Function
getUser
(key: { id: string } | { email: string })
models/user.ts:49
↓ 12 callers
Function
printTable
(data, columns)
delete-team.js:528
↓ 11 callers
Function
isAuthProviderEnabled
(provider: AUTH_PROVIDER)
lib/auth.ts:18
↓ 9 callers
Function
updateUser
({ where, data })
models/user.ts:29
↓ 9 callers
Function
useTeam
(slug?: string)
hooks/useTeam.ts:7
↓ 7 callers
Function
applyTheme
(theme: Theme)
lib/theme.ts:13
↓ 7 callers
Function
normalizeUser
(user)
models/user.ts:10
↓ 6 callers
Function
findOrCreateApp
(name: string, uid: string)
lib/svix.ts:9
↓ 6 callers
Method
getConnections
(params: GetConnectionsQuery)
lib/jackson/sso/hosted.ts:33
↓ 6 callers
Function
getCurrentUserWithTeam
( req: NextApiRequest, res: NextApiResponse )
models/team.ts:434
↓ 6 callers
Method
isSaveButtonDisabled
()
tests/e2e/support/fixtures/settings-page.ts:62
↓ 6 callers
Function
sendEmail
(data: EmailData)
lib/email/sendEmail.ts:22
↓ 6 callers
Function
signIn
({ user, account, profile })
lib/nextAuth.ts:286
↓ 5 callers
Function
addTeamMember
( teamId: string, userId: string, role: Role )
models/team.ts:53
↓ 5 callers
Function
generateToken
(length = 64)
lib/server-common.ts:15
↓ 5 callers
Method
invitationAcceptPromptVisible
(invitingCompany: string)
tests/e2e/support/fixtures/login-page.ts:148
↓ 5 callers
Method
openEditSSOConnectionView
()
tests/e2e/support/fixtures/sso-page.ts:209
↓ 5 callers
Method
ssoLogin
(email: string, errorCase = false)
tests/e2e/support/fixtures/login-page.ts:101
↓ 5 callers
Function
useCanAccess
()
hooks/useCanAccess.ts:5
↓ 5 callers
Function
useInvitation
(token?: string)
hooks/useInvitation.ts:9
↓ 5 callers
Function
useTeams
()
hooks/useTeams.ts:5
↓ 4 callers
Method
checkEmptyConnectionList
()
tests/e2e/support/fixtures/sso-page.ts:106
↓ 4 callers
Function
countTeamMembers
({ where })
models/teamMember.ts:3
↓ 4 callers
Function
exceededLoginAttemptsThreshold
(user: User)
lib/accountLock.ts:78
↓ 4 callers
Function
forceConsume
(response)
lib/server-common.ts:5
↓ 4 callers
Function
getInvitation
( key: { token: string } | { id: string } )
models/invitation.ts:67
↓ 4 callers
Function
getTeam
(key: { id: string } | { slug: string })
models/team.ts:41
↓ 4 callers
Function
getTeamMember
(userId: string, slug: string)
models/team.ts:416
↓ 4 callers
Method
gotoInviteLink
(invitationLink: string, invitingCompany: string)
tests/e2e/support/fixtures/login-page.ts:141
↓ 4 callers
Function
isEmailAllowed
(email: string)
lib/email/utils.ts:12
↓ 4 callers
Method
isLoggedIn
()
tests/e2e/support/fixtures/settings-page.ts:48
↓ 4 callers
Function
name
(length: number = maxLengthPolicies.name)
lib/zod/primitives.ts:41
↓ 4 callers
Method
navigateToEditConnection
()
tests/e2e/support/fixtures/directory-sync-page.ts:170
↓ 4 callers
Method
openInviteModal
()
tests/e2e/support/fixtures/member-page.ts:82
↓ 4 callers
Function
removeTeamMember
(teamId: string, userId: string)
models/team.ts:76
↓ 4 callers
Function
sendEvent
( appId: string, eventType: AppEvent, payload: Record<string, unknown> )
lib/svix.ts:37
↓ 4 callers
Function
slugify
(text: string)
lib/server-common.ts:33
↓ 4 callers
Function
useTheme
()
hooks/useTheme.ts:11
↓ 3 callers
Method
acceptInvitation
()
tests/e2e/support/fixtures/login-page.ts:158
↓ 3 callers
Method
checkCurrentSession
()
tests/e2e/support/fixtures/security-page.ts:22
↓ 3 callers
Method
clickSaveButton
()
tests/e2e/support/fixtures/settings-page.ts:92
↓ 3 callers
Function
createDatabaseSession
( user, req: NextApiRequest | GetServerSidePropsContext['req'], res: NextApiResponse | GetServerSideProp
lib/nextAuth.ts:237
↓ 3 callers
Function
createRandomUser
( email: string | undefined = undefined, password: string | undefined = undefined )
prisma/seed.ts:27
↓ 3 callers
Method
createSSOConnection
({ metadataUrl, oidcMetadata, oidcDiscoveryUrl, oidcClientId, oidcClientSecret, provid
tests/e2e/support/fixtures/sso-page.ts:110
↓ 3 callers
Function
createVerificationToken
({ identifier, expires, }: Pick<VerificationToken, 'identifier' | 'expires'>)
models/verificationToken.ts:5
↓ 3 callers
Method
deleteSSOConnection
()
tests/e2e/support/fixtures/sso-page.ts:247
↓ 3 callers
Function
deleteVerificationToken
(token: string)
models/verificationToken.ts:26
↓ 3 callers
Function
dsyncManager
()
lib/jackson/dsync/index.ts:5
↓ 3 callers
Function
extractAuthToken
(req: NextApiRequest)
lib/server-common.ts:22
↓ 3 callers
Function
extractClientId
(req: NextApiRequest)
lib/guards/team-sso.ts:12
↓ 3 callers
Method
fillDomain
(domain: string)
tests/e2e/support/fixtures/settings-page.ts:120
↓ 3 callers
Method
fillEmailForInvite
(email: string)
tests/e2e/support/fixtures/member-page.ts:91
↓ 3 callers
Method
fillNewApiKeyName
(name: string)
tests/e2e/support/fixtures/api-keys-page.ts:52
↓ 3 callers
Method
fillTeamName
(teamName: string)
tests/e2e/support/fixtures/settings-page.ts:58
↓ 3 callers
Method
fillTeamSlug
(teamSlug: string)
tests/e2e/support/fixtures/settings-page.ts:106
↓ 3 callers
Function
getCurrentUser
( req: NextApiRequest, res: NextApiResponse )
models/user.ts:120
↓ 3 callers
Function
getStripeCustomerId
(teamMember, session?: any)
lib/stripe.ts:7
↓ 3 callers
Function
getTeams
(userId: string)
models/team.ts:150
↓ 3 callers
Method
gotoSection
(pageName: 'security' | 'api-keys')
tests/e2e/support/fixtures/settings-page.ts:173
↓ 3 callers
Function
hashPassword
(password: string)
lib/auth.ts:6
↓ 3 callers
Function
isInvitationExpired
(expires: Date)
models/invitation.ts:115
↓ 3 callers
Method
isSettingsPageVisible
()
tests/e2e/support/fixtures/settings-page.ts:52
↓ 3 callers
Function
mutateTeams
()
hooks/useTeams.ts:13
↓ 3 callers
Function
mutateWebhooks
()
hooks/useWebhooks.ts:14
↓ 3 callers
Function
ssoManager
()
lib/jackson/sso/index.ts:5
↓ 3 callers
Function
throwIfNoAccessToConnection
({ teamId, clientId, }: GuardOptions)
lib/guards/team-sso.ts:25
↓ 3 callers
Function
throwIfNoAccessToDirectory
({ teamId, directoryId, }: GuardOptions)
lib/guards/team-dsync.ts:10
↓ 3 callers
Function
useWebhooks
(slug: string)
hooks/useWebhooks.ts:6
↓ 3 callers
Function
validateRecaptcha
(token?: string)
lib/recaptcha.ts:4
↓ 2 callers
Method
apiKeyVisible
(name: string)
tests/e2e/support/fixtures/api-keys-page.ts:60
↓ 2 callers
Function
authProviderEnabled
()
lib/auth.ts:22
↓ 2 callers
Method
checkOtherSession
()
tests/e2e/support/fixtures/security-page.ts:26
↓ 2 callers
Method
createConnection
(params: any)
lib/jackson/sso/hosted.ts:16
↓ 2 callers
Function
createEventType
(eventType: string)
lib/svix.ts:52
↓ 2 callers
Function
createInvitation
( params: Omit< Invitation, 'id' | 'token' | 'expires' | 'createdAt' | 'updatedAt' > )
models/invitation.ts:90
↓ 2 callers
Method
createNewAccountViaInviteLink
( name: string, email: string, password: string, invitingCompany: string )
tests/e2e/support/fixtures/login-page.ts:171
↓ 2 callers
Function
createTeam
(param: { userId: string; name: string; slug: string; })
models/team.ts:10
↓ 2 callers
Function
createUser
(data: { name: string; email: string; password?: string; emailVerified?: Date | null; })
models/user.ts:18
↓ 2 callers
Method
deleteConnection
(params: DelConnectionsQuery)
lib/jackson/sso/hosted.ts:65
↓ 2 callers
Function
deleteInvitation
( key: { token: string } | { id: string } )
models/invitation.ts:107
↓ 2 callers
Function
deleteManySessions
({ where })
models/session.ts:3
↓ 2 callers
Function
deleteUser
(key: { id: string } | { email: string })
models/user.ts:71
↓ 2 callers
Function
extractEmailDomain
(email: string)
lib/email/utils.ts:20
↓ 2 callers
Function
findWebhook
(appId: string, endpointId: string)
lib/svix.ts:25
↓ 2 callers
Function
getActiveSubscriptions
(team)
delete-team.js:342
↓ 2 callers
Function
getAndVerifyInvitation
(email: string)
tests/e2e/settings/members.spec.ts:240
↓ 2 callers
Function
getAuthOptions
( req: NextApiRequest | GetServerSidePropsContext['req'], res: NextApiResponse | GetServerSidePropsContext
lib/nextAuth.ts:261
↓ 2 callers
Method
getConnectionById
(directoryId: string)
lib/jackson/dsync/hosted.ts:92
↓ 2 callers
Function
getConnections
(tenant)
delete-team.js:414
↓ 2 callers
Function
getRetracedClient
()
lib/retraced.ts:35
next →
1–100 of 590, ranked by callers