Showing components/pages based on user role (Vue.js)

Hi there,

I have a Vue.js app that is using with Auth0. Currently I’m trying:

const { user } = useAuth0();
console.log(user);

This returns the user, but there’s no information about the role. The user is in a role in the Auth0 panel. I have no idea how to continue from here, and the docs (and to be honest, everything in general about how to implement Auth0) are incredibly confusing.

How can I get the role of the user?

Thanks