- Which SDK this is regarding: React SDK
- SDK Version:@auth0/auth0-react"
- Platform Version:1.8.0"
We can get the user object from useauth0 context.
But the user object has just permissions. We need to get roles from context.
How can we get roles?
It gives like below.
customdomain.com/permissions": [
“create”,
“read”,]
I need roles.
Hi there @furkan.gulsoy welcome to the community!
As far as I’m aware the roles aren’t available here.
Typically, roles are included in a user’s ID Token and leveraged that way - Please see the following post for how to add them via a Post Login Action:
Hope this helps!
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.