Does anyone know if it's possible to add custom claims to the JWT token of users that just created an account?
s
silentworks
10/21/2021, 9:03 PM
Its probably better to express what you are trying to accomplish as there might be better ways to accomplish this, you don't really want to modify the JWT since you don't own it
e
emilioschepis
10/22/2021, 6:07 AM
Thanks for the reply! Let me clarify my use case. I'd like to use Supabase's authentication to interact with an external service that requires a special key in the custom claims of a JWT token to authorize requests.
emilioschepis
10/22/2021, 6:08 AM
The documentation for the service is here: https://hasura.io/docs/latest/graphql/core/auth/authentication/jwt.html - I have used it extensively in the past through Firebase Auth (that provides a webhook on user registration, and the ability to specify custom claims) but I've been looking to switch over to Supabase.