Hello,
I am following this tutorial (Auth0 Node (Express) API SDK Quickstarts: Authorization) to enable authentication in my express app. I notice there is a checkScopes middleware which can be utilized to see if the incoming access token contains a particular scope.
Now, I have actually enabled the authorization extension and through that I am setting custom permissions using the following snippet of code:
context.accessToken[namespace + ‘permissions’] = user.permissions;
I wanted to know, how can we override the checkScopes method to look at the namespace in order to get the list of scopes (rather than the default scopes property which is part of the spec).
Thanks!
Max