User as an organization

I would like to do the sign up, whenever someone sign-up to the app, i create an organization for that user, and the user can invite employees, but i would like to assign the subscription for the organization, not the user. So basically the flow is, on sign-up, i take the organization data, and some of the user data, and create an organization and add the user to that organization. Is it possible now with better auth, or only the user can have a subscription? Also, whenever i do de emailSignUp, i have to manually create an organization? on the nextjs example whenever i sign up, i get a personal organization, or is it just informative thing, nothing is created in the db?
1 Reply
rhitune
rhitune3d ago
use databaseHooks session -> create -> after -> create organization and subscription?

Did you find this page helpful?