PowerSync can verify Supabase JWTs directly when connected to a Supabase-hosted Postgres database.
Copy the secret from your Supabase project settings.
Enable Supabase Auth in your PowerSync instance settings and paste the secret.
config.yaml
:
request.user_id()
in Sync Rules. To use a different identifier as the user ID in sync rules (for example user email), use Custom authentication.