Better-Auth Enchanced/Plugins
Feedback
This plugin provides feedback collection and management for your Better Auth application. By default, authentication is required to submit feedback, but this can be configured.
Installation
To use this plugin in your application, you need to register it in both client and server configurations.
Initialize plugin
Usage
To submit feedback on the client side:
API
| Prop | Type | Default |
|---|---|---|
onSubmit? | (feedback: Feedback) => Promise<void> | - |
schema? | Record<string, any> | - |
adminRoles? | string[] | [] |
authRequired? | boolean | true |
enabled? | boolean | true |
Error Codes
| Code | Description |
|---|---|
FEEDBACK_NOT_FOUND | Feedback not found |
SYSTEM_DISABLED | Feedback system is currently disabled |
UNAUTHORIZED | You must be logged in to view feedbacks |
UNAUTHORIZED_SUBMIT | You must be logged in to submit feedback |
ADMIN_REQUIRED | You must be an admin to perform this action |
Username
This plugin provides advanced username validation and management for Better Auth. It allows users to sign in with a username and password and adds strong validation rules.
Age Restriction
This plugin provides age verification and restriction features for Better Auth applications. It allows you to add age-based access restrictions to specific content or services.