Auth0 can't assign role claim without namespace
Hi all,
I'm trying to use Auth0 integration with supabase, however, Auth0 prohibits assigning 'role' claim without namespace. Can I configure Supabase to use different claim for picking up a role or what would be an acceptable workaround?
This part of the docs doesn't currently work with auth0:
https://supabase.com/docs/guides/auth/third-party/auth0
api.accessToken.setCustomClaim('role', 'authenticated')
Auth0 | Supabase Docs
Use Auth0 with your Supabase project
1 Reply
I'm pretty sure users have been using the guide for awhile.
A role claim in the JWT is required to use the DB. Authenticated is the built in role. Others could be used by creating Postgres roles and setting it up properly.
Has there been a change in Auth0?