In my Angular app, based on the logged in user, I would like to grant or limit functionality by showing/hiding different menu items or allowing/disallowing certain routes. Currently on successful login, my .NET Core API returns a JWT Token along with the user's Role and stores it in local storage. I then use this to display my menu (for example). I'm just having doubts that this is the best practice as it exposes my user's role and I'm not sure what might happen if someone manually changes this in local storage.
Is there a better/more secure way of achieving this?
Please let me know if you need more details. Thanks
