organization.autoCreateOrganizationOnSignUp doesn't seem to do anything

Hi there I'm trying to create an org for users on signup. I saw this flag in the plugin config, but it doesn't seem to actually do anything. I signup, verify my email, but not org or member is created
5 Replies
Ping
Ping2mo ago
Hey yeah that's not developed just yet, we recommend creating an org on sign-up by using database hooks
SkepticMystic
SkepticMysticOP2mo ago
Alright, thanks for the recommendation! This this gets into the other support thread I opened. How do I use the better-auth api methods inside the auth setup? TS shouts about the variable referencing itself How exactly?? Use the db orm directly? That feels wrong. And there isn't a createOrganization method on ctx either
Ata Sanchez
Ata Sanchez2mo ago
@Max do you have a proposed solution for this problem?
Ping
Ping2mo ago
@SkepticMystic @Ata Sanchez Auth.api shouldn't have any issues.
No description
SkepticMystic
SkepticMysticOP2mo ago
Makes sense, I got auth.api working inside hooks. I think TS just hadn't caught up yet, so it was shouting

Did you find this page helpful?