Need help with ReactJS authorization extensione example


I want to add in permissions and roles to the id token in the response. I defined on the authorization extension. I’m using ReactJS for the login.

So I found this example to follow.

But no matter how i tried, i can’t seemed to get the response to return permissions that i created in the extension on context.idToken or context.accessToken.

I tested by checking the id_token output in and didn’t see any permissions returned. Please let me know where did I go wrong