Pass custom extra fields on OAuth from client

When using signIn.social({ ... }) how can we pass extra data to be included on the user creation? For example, we want to pass a custom locale and pricing fields here. Any ideas on how to do this?
2 Replies
sebastian
sebastian3w ago
easiest and probably best way is to use hooks https://www.better-auth.com/docs/concepts/hooks
Hooks | Better Auth
Better Auth Hooks let you customize BetterAuth's behavior
ubinatus
ubinatusOP3w ago
Yeah, ended up doing that...

Did you find this page helpful?