Strong +1 to this feature request. Not to piggy-back, but in general I’d love to see a more full set of field types supported (hidden, select, multiselect, etc).
Amrit Niure
•
Aug 8, 2025
Hello there,
I’m building a role-based login system where each user is assigned a specific role during signup.
Currently, Better Auth UI only supports additional fields of type "string", which means the user must manually type their role. However, in my case, the role should be determined by the application, not entered by the user.
For example:
MENTOR role for mentors
STUDENT role for students
I need a way to set this role myself (as the developer) right before signup, so the user can simply sign up and log in without being prompted to enter their role.
It would be extremely useful if Better Auth UI supported:
Hidden input fields for additional fields, allowing us to pass predefined values directly to the backend without user interaction.
This feature would make it much easier to handle role assignments securely while keeping the signup process clean for the user.
Log in to comment and vote
Comments2
Mickey Kay
Aug 19, 2025
Strong +1 to this feature request. Not to piggy-back, but in general I’d love to see a more full set of field types supported (hidden, select, multiselect, etc).
Amrit Niure
Aug 8, 2025
Hello there,
I’m building a role-based login system where each user is assigned a specific role during signup.
Currently, Better Auth UI only supports additional fields of type
"string", which means the user must manually type their role. However, in my case, the role should be determined by the application, not entered by the user.For example:
MENTOR role for mentors
STUDENT role for students
I need a way to set this role myself (as the developer) right before signup, so the user can simply sign up and log in without being prompted to enter their role.
It would be extremely useful if Better Auth UI supported:
Hidden input fields for additional fields, allowing us to pass predefined values directly to the backend without user interaction.
This feature would make it much easier to handle role assignments securely while keeping the signup process clean for the user.