Double Owner member ship creation on creation of organization

I have upgraded to v1.2 but am having issue where when you create an organization the member ship get created twice and i even inspected if am making double request but not yet and i don't have double middleware and this is the block of code am using creating organization
await authClient.organization.create({
name: data.name,
slug: data.slug,
});
await authClient.organization.create({
name: data.name,
slug: data.slug,
});
No description
4 Replies
bekacru
bekacru3w ago
make sure to upgrade to latest
Troy
TroyOP3w ago
still and am on the latest version
"better-auth": "1.2.0"
"better-auth": "1.2.0"
bekacru
bekacru3w ago
latest is 1.2.4
Troy
TroyOP3w ago
okay let me try it too

Did you find this page helpful?