EDE in API endpoint set-active
API endpoint to set active org -> Is showing alot of information
It drops the entire tables out back to the user just for setting active - Where API endpoint get-full-org is pulled right after.
I think ths API endpoint should return false/true if its set, and not return the whole objects.
17 Replies
Furthermore, the documentation does not really go through on how to use the permissions:
https://www.better-auth.com/docs/plugins/organization
Would someone be able to explain how to actually use these roles somewhere?
E.g On a dashboard page - If I Create a permission on member called "canviewstats" -> How would this go through
Organization | Better Auth
The organization plugin allows you to manage your organization's members and teams.
It also seems like:
Using
Actually hits endpoint
Instead of the intended endpoint.
==
client.organization.getFullOrganization
this is the right path, no?
we should have the ac plugin done tomrrow. It should be much more robust and well documented.
No. Useactiveorg hits Get-full-org
if you have two instance of better auth make sure to update both of them
meaning one for the client one for the server
I dont
I think issue is deeper than config
it should be hitting
organization/get-full-organization
not sure why yours isnt
what do you mean?So when using "useactiveorg" it is correct it should be hitting get-full-org endpoint? which is the same api endpoint it hits when using

sorry if I am not clear
but these two hit the same API endpoint
which I think is a mistake
no it's not a mistake
the difference between those two is being a reactive hook or not
Oh wow. Im clearly stupid then!
Anyhow, circling back to my first message. Is this meant to expose all of this info when setting active org
And is there an option to call to fetch information about the users role in the org etc and not dropping the whole members with it?
Organization | Better Auth
The organization plugin allows you to manage your organization's members and teams.
Would this also return the role of the user?
yeah
But to make sure, the "set-active" is meant to return the entire org object, and not simply a true/false value?
yes
https://www.better-auth.com/docs/plugins/organization
Will there ever be a way to only fetch the current id/name of the org, instead of outputting everything with "use active org"
-> Still dumping all the members on each request seems to be too much info
Organization | Better Auth
The organization plugin allows you to manage your organization's members and teams.