Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cholasimmons/bun-elysia-modular_auth
/ functions
Functions
531 in github.com/cholasimmons/bun-elysia-modular_auth
⨍
Functions
531
◇
Types & classes
124
Method
aggregate
* Allows you to perform aggregations operations on a WalletTransactionLog. * Note, that providing `undefined` is treated as the value not being the
src/generated/prisma/models/WalletTransactionLog.ts:1131
Method
aggregate
* Allows you to perform aggregations operations on a EmailVerificationCode. * Note, that providing `undefined` is treated as the value not being th
src/generated/prisma/models/EmailVerificationCode.ts:696
Method
aggregate
* Allows you to perform aggregations operations on a AutoEnrol. * Note, that providing `undefined` is treated as the value not being there. * Re
src/generated/prisma/models/AutoEnrol.ts:813
Method
authSession
(args?: Prisma.Subset<T, Prisma.User$authSessionArgs<ExtArgs>>)
src/generated/prisma/models/User.ts:1432
Method
autoEnrol
* `prisma.autoEnrol`: Exposes CRUD operations for the **AutoEnrol** model. * Example usage: * ```ts * // Fetch zero or more AutoEnrols
src/generated/prisma/internal/class.ts:339
Function
banAgentInsomnia
(ctx:any)
src/_middleware/lifecycleHandlers.ts:3
Function
bootLogger
({ hostname, server }:any)
src/_utils/systemLogger.ts:39
Method
broadcastToCategory
(category: string, message: string)
src/_modules/notifications/connectionsManager.ts:140
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/Session.ts:1163
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/WalletTransaction.ts:1293
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/PasswordResetToken.ts:773
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/WSConnections.ts:800
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/FileUpload.ts:1187
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/Profile.ts:1861
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/Wallet.ts:1131
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/Message.ts:963
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/Subscription.ts:889
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/OAuth_Account.ts:795
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/CouponLog.ts:1034
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/Coupon.ts:1157
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/WalletTransactionLog.ts:1235
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/EmailVerificationCode.ts:800
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/AutoEnrol.ts:917
Function
checkAuth
({ session, user, request: { headers }, cookie: { lucia_auth }, authMethod, jwt, error, }: any)
src/_middleware/authChecks.ts:24
Function
checkBalance
( profileId: string, opts?: { currency: Currency }, )
src/_modules/wallets/wallet.service.ts:20
Function
checkEmailVerified
({ user, error }: any)
src/_middleware/authChecks.ts:82
Function
checkForProfile
({ user, session, error }: any)
src/_middleware/authChecks.ts:115
Function
checkIsAdmin
({ user, error }: any)
src/_middleware/authChecks.ts:95
Function
checkIsStaff
({ user, error }: any)
src/_middleware/authChecks.ts:104
Function
checkMaintenanceMode
({set, store}:any)
src/_middleware/lifecycleHandlers.ts:13
Function
clearDeletedMessages
CRON function * Deletes all inactive messages older than 30 days
src/_modules/messages/message.service.ts:153
Function
clearExpiredEmailVerificationCodes
()
src/_modules/auth/auth.service.ts:344
Function
close
(ws)
src/_modules/notifications/index.ts:65
Function
constructor
(queueName: string)
src/_queues/base.queue.ts:9
Function
constructor
(queueName: string)
src/_queues/workers/base.worker.ts:9
Method
constructor
()
src/_queues/file.queue.ts:6
Method
constructor
(private authService: AuthService)
src/_queues/email.queue.ts:10
Method
constructor
()
src/_queues/workers/file.worker.ts:6
Method
constructor
(authService: AuthService)
src/_queues/workers/email.worker.ts:11
Method
constructor
()
src/_modules/notifications/connectionsManager.ts:22
Method
constructor
(redisUrl = `redis://${_host}:${_port}`)
src/_config/redis.ts:78
Method
constructor
(public message: string, status: number = 401, cause?: string)
src/_exceptions/custom_errors.ts:10
Method
constructor
(public message: string = "You do not have permission to perform this action", status: number = 403, cause?: s
src/_exceptions/custom_errors.ts:24
Method
constructor
(public message: string = "The requested resource was not found", status: number = 404, cause?: string)
src/_exceptions/custom_errors.ts:38
Method
constructor
(public message: string = "Your requested is not valid", status: number = HttpStatusEnum.HTTP_400_BAD_REQUEST,
src/_exceptions/custom_errors.ts:52
Method
constructor
(public message: string = "A persistence storage error occurred", status: number, cause?: string)
src/_exceptions/custom_errors.ts:66
Method
constructor
(public message: string = "Unable to process payment request", status: number = HttpStatusEnum.HTTP_402_PAYMEN
src/_exceptions/custom_errors.ts:81
Method
constructor
(public message: string, status: number = 500, cause?: string)
src/_exceptions/custom_errors.ts:94
Method
constructor
( public message: string = "Input validation failed", status: number = HttpStatusEnum.HTTP_400
src/_exceptions/custom_errors.ts:108
Method
constructor
( public message: string = "A third-party service is unavailable or returned an error", status
src/_exceptions/custom_errors.ts:126
Method
constructor
(public message: string = "Conflict occurred with the current state of the resource", status: number = 409, ca
src/_exceptions/custom_errors.ts:144
Method
constructor
(public message: string = "Too many requests. Please try again later", status: number = HttpStatusEnum.HTTP_42
src/_exceptions/custom_errors.ts:158
Method
constructor
(public message: string = "An unexpected error occurred", status: number = 500, cause?: string)
src/_exceptions/custom_errors.ts:172
Method
constructor
(public message: string = "The operation timed out", status: number = 504, cause?: string)
src/_exceptions/custom_errors.ts:186
Method
constructor
(public message: string = "The service is temporarily unavailable", status: number = 503, cause?: string)
src/_exceptions/custom_errors.ts:200
Method
constructor
(public message: string = "Payment is required to access this resource", status: number = HttpStatusEnum.HTTP_
src/_exceptions/custom_errors.ts:214
Method
count
* Count the number of Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/
src/generated/prisma/models/Session.ts:1024
Method
count
* Count the number of WalletTransactions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://
src/generated/prisma/models/WalletTransaction.ts:1154
Method
count
* Count the number of PasswordResetTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https:/
src/generated/prisma/models/PasswordResetToken.ts:635
Method
count
* Count the number of WSConnections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.
src/generated/prisma/models/WSConnections.ts:662
Method
count
* Count the number of FileUploads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly
src/generated/prisma/models/FileUpload.ts:1049
Method
count
* Count the number of Profiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/
src/generated/prisma/models/Profile.ts:1719
Method
count
* Count the number of Wallets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/n
src/generated/prisma/models/Wallet.ts:991
Method
count
* Count the number of Messages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/
src/generated/prisma/models/Message.ts:825
Method
count
* Count the number of Subscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.
src/generated/prisma/models/Subscription.ts:750
Method
count
* Count the number of OAuth_Accounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris
src/generated/prisma/models/OAuth_Account.ts:656
Method
count
* Count the number of CouponLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/
src/generated/prisma/models/CouponLog.ts:896
Method
count
* Count the number of Coupons. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/n
src/generated/prisma/models/Coupon.ts:1018
Method
count
* Count the number of WalletTransactionLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https
src/generated/prisma/models/WalletTransactionLog.ts:1097
Method
count
* Count the number of EmailVerificationCodes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: http
src/generated/prisma/models/EmailVerificationCode.ts:662
Method
count
* Count the number of AutoEnrols. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/
src/generated/prisma/models/AutoEnrol.ts:779
Method
coupon
* `prisma.coupon`: Exposes CRUD operations for the **Coupon** model. * Example usage: * ```ts * // Fetch zero or more Coupons * const
src/generated/prisma/internal/class.ts:239
Method
couponLog
* `prisma.couponLog`: Exposes CRUD operations for the **CouponLog** model. * Example usage: * ```ts * // Fetch zero or more CouponLogs
src/generated/prisma/internal/class.ts:249
Function
create
( userProfileId: string, query?: { initialBalance: number; currency: Currency }, )
src/_modules/wallets/wallet.service.ts:45
Method
create
* Create a Session. * @param {SessionCreateArgs} args - Arguments to create a Session. * @example * // Create one Session * const Session
src/generated/prisma/models/Session.ts:857
Method
create
* Create a WalletTransaction. * @param {WalletTransactionCreateArgs} args - Arguments to create a WalletTransaction. * @example * // Create o
src/generated/prisma/models/WalletTransaction.ts:987
Method
create
* Create a PasswordResetToken. * @param {PasswordResetTokenCreateArgs} args - Arguments to create a PasswordResetToken. * @example * // Creat
src/generated/prisma/models/PasswordResetToken.ts:468
Method
create
* Create a WSConnections. * @param {WSConnectionsCreateArgs} args - Arguments to create a WSConnections. * @example * // Create one WSConnect
src/generated/prisma/models/WSConnections.ts:495
Method
create
* Create a FileUpload. * @param {FileUploadCreateArgs} args - Arguments to create a FileUpload. * @example * // Create one FileUpload * co
src/generated/prisma/models/FileUpload.ts:882
Method
create
* Create a Profile. * @param {ProfileCreateArgs} args - Arguments to create a Profile. * @example * // Create one Profile * const Profile
src/generated/prisma/models/Profile.ts:1552
Method
create
* Create a Wallet. * @param {WalletCreateArgs} args - Arguments to create a Wallet. * @example * // Create one Wallet * const Wallet = awa
src/generated/prisma/models/Wallet.ts:824
Method
create
* Create a Message. * @param {MessageCreateArgs} args - Arguments to create a Message. * @example * // Create one Message * const Message
src/generated/prisma/models/Message.ts:658
Method
create
* Create a Subscription. * @param {SubscriptionCreateArgs} args - Arguments to create a Subscription. * @example * // Create one Subscription
src/generated/prisma/models/Subscription.ts:583
Method
create
* Create a OAuth_Account. * @param {OAuth_AccountCreateArgs} args - Arguments to create a OAuth_Account. * @example * // Create one OAuth_Acc
src/generated/prisma/models/OAuth_Account.ts:489
Method
create
* Create a CouponLog. * @param {CouponLogCreateArgs} args - Arguments to create a CouponLog. * @example * // Create one CouponLog * const
src/generated/prisma/models/CouponLog.ts:729
Method
create
* Create a Coupon. * @param {CouponCreateArgs} args - Arguments to create a Coupon. * @example * // Create one Coupon * const Coupon = awa
src/generated/prisma/models/Coupon.ts:851
Method
create
* Create a WalletTransactionLog. * @param {WalletTransactionLogCreateArgs} args - Arguments to create a WalletTransactionLog. * @example * //
src/generated/prisma/models/WalletTransactionLog.ts:930
Method
create
* Create a EmailVerificationCode. * @param {EmailVerificationCodeCreateArgs} args - Arguments to create a EmailVerificationCode. * @example *
src/generated/prisma/models/EmailVerificationCode.ts:495
Method
create
* Create a AutoEnrol. * @param {AutoEnrolCreateArgs} args - Arguments to create a AutoEnrol. * @example * // Create one AutoEnrol * const
src/generated/prisma/models/AutoEnrol.ts:612
Function
createAndSendMessage
( body: MessageInputCreate, userId?: string, )
src/_modules/messages/message.service.ts:17
Function
createAndSendMessageSafely
( body: MessageInputCreate, userId?: string, )
src/_modules/messages/message.service.ts:45
Function
createCoupon
( profileId: string, body: ICreateCoupon, query?: { usedBy?: boolean }, )
src/_modules/coupons/coupon.service.ts:11
Function
createJWTs
( payload: any, jwt: any, rememberMe?: boolean, )
src/_modules/auth/auth.service.ts:166
Function
createLuciaSession
( userId: string, headers: Headers, profileId?: string | null, rememberMe?: boolean, )
src/_modules/auth/auth.service.ts:53
Method
createMany
* Create many Sessions. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions *
src/generated/prisma/models/Session.ts:871
Method
createMany
* Create many WalletTransactions. * @param {WalletTransactionCreateManyArgs} args - Arguments to create many WalletTransactions. * @example *
src/generated/prisma/models/WalletTransaction.ts:1001
Method
createMany
* Create many PasswordResetTokens. * @param {PasswordResetTokenCreateManyArgs} args - Arguments to create many PasswordResetTokens. * @example
src/generated/prisma/models/PasswordResetToken.ts:482
Method
createMany
* Create many WSConnections. * @param {WSConnectionsCreateManyArgs} args - Arguments to create many WSConnections. * @example * // Create man
src/generated/prisma/models/WSConnections.ts:509
Method
createMany
* Create many FileUploads. * @param {FileUploadCreateManyArgs} args - Arguments to create many FileUploads. * @example * // Create many FileU
src/generated/prisma/models/FileUpload.ts:896
Method
createMany
* Create many Profiles. * @param {ProfileCreateManyArgs} args - Arguments to create many Profiles. * @example * // Create many Profiles *
src/generated/prisma/models/Profile.ts:1566
← previous
next →
101–200 of 531, ranked by callers