Magic link sign up with custom user parameters

I have two sign in forms one for basic users and another for admins. I store the role in a column on the users table. I'm using magic links for sign in. How can I pass the role to the user account creation? It seems there's no way to pass custom fields for user creation.
2 Replies
Draco
Draco4mo ago
You could try using hooks to determine what kinda sign up is ocurring, and assign the roles accordingly
Draco
Draco4mo ago
Hooks | Better Auth
Better Auth Hooks let you customize BetterAuth's behavior

Did you find this page helpful?