Access user roles with Auth0 Lock

We would like to include user’s role(s) in response from lock.checkSession() or lock.getUserInfo(), is this possible?

Using auth0-lock-11.31.1.

Hi @emma.wegelid,

Welcome to the Auth0 Community!

Can you try adding the roles to the token? This resource demonstrates how to do that:

@dan.woda That did the trick! Thanks a lot.

1 Like

Great! Let us know if you have any other questions.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.