403 User is not part of organization
I calling with
authClient.useListOrganizations()
all my organization but when I want to set one as active I get an 403 with message User is not a member of the organization
. I checked in my db the users as well and he is part of organization. Do i miss something?
my snippet:
6 Replies
setActiveTeam works aswell fine.
I'm seeing the same exact issue on my end. I can call the
useListOrganizations
hook but when i try to set the active org with the following i recieve a 403
I don't know where this regression happened but i rolled back to version 1.2.10 and now it works again as expected.@discquist found the issue, slug do not work anymore somehow, use the id and it works
Ok thanks, that's too bad, since slugs could be used for better looking urls when using the active org for routing.. did you find any workaround for that?
You could still use slug for the url and use from the session or the hook the id instead
True! Thanks 👍