"superadmin" to bypass organization membership checks

Hey all, I'm working with better-auth and have noticed all of the organization methods check that the acting user is a member of that org first. This to me is an issue, as if the user is an admin/has valid permissions I want them to be able to act against orgs without them being a member - https://github.com/better-auth/better-auth/blob/main/packages/better-auth/src/plugins/organization/routes/crud-invites.ts#L180 Can we better leverage perms here as a feature request?
GitHub
better-auth/packages/better-auth/src/plugins/organization/routes/cr...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?