Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to get additional data during database hooks - Better Auth
BA
Better Auth
•
4mo 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
?
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Additional Fields Issue In Database Hooks
BA
Better Auth / help
13mo ago
Typescript - how to infer additional, non-database fields during registration
BA
Better Auth / help
14mo ago
Organizations database hooks
BA
Better Auth / help
15mo ago
Inferring additional fields on hooks
BA
Better Auth / help
9mo ago