Customizing Sign up flow
Hi guys! I want to customize my sign up flow. What I want to do is after the user signs up, it would run a custom logic, in this case it would create an initial workspace for them. I already have the logic for creating a workspace as a separate step, but what I want to do is automatically create this after the user signs up.
3 Replies
Take a look into the database hooks:
https://www.better-auth.com/docs/concepts/database#2-after-hook
Database | Better Auth
Learn how to use a database with Better Auth.
Use the
after
hook to on the user
, and from there, create the workspace.Thanks @Ping !