authenticate user from js client, pass token to python api

Hi

I currently have a js web app that authenticates with supabase.

I also have a python API that is connected to this web app.

I want to secure the endpoints on this API, only allowing particular users to perform specific actions on this python API.

How can I authenticate the user on the python side? Is there a token I can pass from the frontend and add to the header object of the python supabase client, and ensure the user is who they claim to be?

Thanks
Was this page helpful?