I have followed the tutorial up until “Now that the authorization guards are in place, any attempt to create a new menu item directly using a non-admin access token results in failure:” When I login as an admin user I can see the add item and edit item buttons but it says “unauthorized”. If I log in as a regular user the buttons are gone. I had to set up the auth0 stuff as an action since rules are deprecated but unsure how to progress since it obviously sees my admin role and shows the buttons but won’t let me make any changes.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Form Validation Bug in WHATABYTE Auth0 Code | 2 | 3745 | March 18, 2021 | |
Node.js and Express Tutorial: Building and Securing RESTful APIs | 25 | 10985 | September 5, 2023 | |
Use TypeScript to Create a Secure API with Node.js and Express | 27 | 8937 | March 2, 2022 | |
Node.js API Authorization: Complete Guide with TypeScript | 0 | 2766 | October 12, 2022 | |
Express.js TypeScript Authorization: Basic API Access Control | 0 | 2605 | December 14, 2021 |