Open
Description
Bug report
- I confirm this is a bug with supabase-py, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions.
Describe the bug
supabase-py does not support the new API keys (https://github.com/orgs/supabase/discussions/29260).
In the SyncClient, this is caused by the following lines :
supabase-py/supabase/_sync/client.py
Lines 60 to 64 in 0f3250a
Those explicitly check the supabase_key provided is a JWT and raise an exception stating the key is invalid if it is not.
Removing this check is enough to render ClientSync compatible. We do that via Monkeypatching in our codebase. Alternatively one might just change the check to also allow supabase_key starting with sb_secret_ in addition the old JWT based keys.