Organization leaving
on organization leave by members, isn't there any beforeleave like custom hook
Null workspace entry - when user joins organization but isn't in any workspace yet
Workspace-specific entry - when user becomes a member of a specific workspace
When leaving an organization, only one of these entries is being removed, so you have to leave twice to completely remove the user from the organization.
I'm facing this issue
or const response = await authClient.organization.removeMember({
organizationId,
memberIdOrEmail,
}); can't I just have these methods in leave
const response = await authClient.organization.leave({
organizationId,
});
0 Replies