A template for building accessible, localised, high performance React front ends with a standard set of libraries. Also provides a template for development servers.
Apache License 2.0
2
stars
0
forks
source link
Configure OTC to handle unauthorised responses globally and redirect to an authentication page #15
401 Unauthorised responses are thrown by the APIs if:
the user is no longer logged in e.g JWT cookie or header has expired
the user is not meant to be accessing a certain endpoint
this may not be the role of the OTC client (possible explore if this is better handled at via React context) - but it would be nice to have a global catch for this and then redirect the the user to the login pages.
On a separate note, it's things like this that will make bootstrapping an application quicker.
401 Unauthorised
responses are thrown by the APIs if:this may not be the role of the OTC client (possible explore if this is better handled at via React context) - but it would be nice to have a global catch for this and then redirect the the user to the login pages.