Auth0 route restrictions in Node.js after Google sign in

I am building a Legacy Gitbook with user sign in from Auth0 following this tutorial. I have limited user sign in to specific email domains and now want to restrict navigation to a specific section (i.e. the payroll section) of my Gitbook. I am having trouble accessing both Auth0 user data and Google user data to prevent users without specific roles or user information (emails) from going to ‘/payroll’.

I have scoured the documentation/StackOverflow and tried a number of different methods suggested to retrieve user information. None of it has worked. I am able to retrieve my access token but have not been able to use to it access the information I need.

Any suggestions, directions, and similar solutions would be greatly appreciated.

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?