anomaly / lab-web-client

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

Closed devraj closed 2 years ago

devraj commented 2 years ago

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.

On a separate note, it's things like this that will make bootstrapping an application quicker.