© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to get additional data during database hooks - Better Auth
BA
Better Auth
•
5mo ago
•
3 replies
skndash96
How to get additional data during database hooks
I have a custom table
user_roles (user_id, role text)
user_roles (user_id, role text)
where role might
vendor | customer
vendor | customer
I want to populate this
, during database after user create hook
. How would I know which user role is signing up
? Do I pass a custom header or is there a more clean way
?
Recent Announcements
Similar Threads
Additional Fields Issue In Database Hooks
BA
Better Auth / help
14mo ago
Typescript - how to infer additional, non-database fields during registration
BA
Better Auth / help
15mo ago
Organizations database hooks
BA
Better Auth / help
16mo ago
Inferring additional fields on hooks
BA
Better Auth / help
11mo ago