How to get app_metadata in RLS policy?

I've tried the following:

((auth.jwt() ->> 'app_metadata')::jsonb ->> 'active_team')::uuid

((current_setting('request.jwt.claims')::jsonb ->> 'app_metadata')::jsonb ->> 'active_team')::uuid

Nether seem to work. Is there an advised way to accomplish this?
Was this page helpful?