additional Fields on client
How can I get the additional fields set on the client an on user sign up use those values say for invitation or referrals? Is there anyway I can access this before or after user creation?
4 Replies
you can setup database hooks
Database | Better Auth
Learn how to use a database with Better Auth.
here is example
Hi @nikatune thank you for replying. Yup I looked into database hooks but the additional fields are not available on the before only on the after and the values passed from the client are not available also. Tho I can see it getting returned by the after hook.
What I wanted to do was pass additional information from the client then either before or after user create whichever gives me access to those fields passed from the client, i will then perform additional actions