DEV Community

Discussion on: Truly Protected React Routes

Collapse
 
ravavyr profile image
Ravavyr

In that case you could just add a value to the object like "message":"nogo" and use that to determine it, but since all failed responses return the same message it throws a potential hacker off the scent since there's nothing useful to it.

Thread Thread
 
daggala profile image
Daggala Gudmundsdottir

neat! thanks for the tips! :)