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.