'Direct' Postgres Connection - any way to ensure that access policies apply?

Hi, I want a direct connection from our custom API (built in Python with FastAPI) to Postgres, since it is a lot faster. Is it somehow possible to pass the
access_token
or any authentication to the db call's that trigger the policies configured in the Supabase dashboard? Or are the database policies only applied when using the Supabase API? Sorry if that's a dumb question, happy for your help!
Was this page helpful?