Handle authentication redirects in a React application safely | MavenHost