I followed the helpful tutorial on how to setup fauna with Auth0
In part 2 it shows how to add the role into the idToken but for some reason in the rule it comes empty when I try to fetch from the authorization roles.
As a workaround I am fetching from the user app_metadata but that isn’t ideal because I have to manually update the app_metadata for each user and it can get out of sync with the real Auth0 roles.
Any idea on what might I be missing?
Other than that everything works well. Upon login the user gets the auth token which it is used to fetch successfully on Fauna GraphQL’s API.