Neon Auth | Organization + RLS

Hey! I'm looking into using Neon Auth, and want to use Organizations with RLS. How can I in a postgres function check what the active organization Id is so I can do a compare on the org id as well as the user id?

We have auth.uid() for the user id, it would be great if there was a function like auth.activeOrgId() for the org id.
Was this page helpful?