How to get app_metadata in RLS policy?
I've tried the following:
Nether seem to work. Is there an advised way to accomplish this?
((auth.jwt() ->> 'app_metadata')::jsonb ->> 'active_team')::uuid((current_setting('request.jwt.claims')::jsonb ->> 'app_metadata')::jsonb ->> 'active_team')::uuidNether seem to work. Is there an advised way to accomplish this?