title: Create Role Based Authorization in Auth0 and NextJS
body: <p>I created a nextjs web application with Auth0.</p>
  <p>A user can login and logout. I can reach also user information. But I cannot see user roles.</p>
  <p>I am getting the profile with Auth0's <code>getSession</code> method.</p>
  <p>I want to create 2 different pages in NextJS which are for <code>user</code> and <code>admin</code> roles.</p>
  <p>So it will be basic API authorization that I want. If a user is in <code>user</code> role then the user can access only the user page. If a user has <code>admin</code> role then the user can access all pages.</p>
  <p>To I achive this I need to get user roles.The <code>getSession</code> method does not return the user roles.</p>
  <p>How can solve the problem?</p>
  <p>Thanks</p>