Hi guys. My problem is I'm using react-router in my app to show some routes and hide some based on The Authentication State, which here is the Token but in react apps there are helper extensions that allow us to change some things in code like react extension. This means that anyone can change the authentication state from it and show the hide or disabled routs, is there any way or better way to solve this problem? thanks.
note: I'm sorry about my bad English
Top comments (5)
Ok, when you use React, every time you need some data, you make an AJAX request (fetch) to an API (who is public). So if your API is protected with tokens, an intruder can only access some empty template.
Is-it still a problem?
If yes, you can:
Okay bro thanks you helped me a lot ♥
If you use the #help tag your post will show up to more people that may be able to assist you :)
Thank you Bro I'll do it now ♥