I have looked in the React authentication template in visual studio
But i could not find anything about redirecting to a login or register page if a user is not authorized
when I [Authorize] a Route the only thing that happens is that it wont fetch data
so i get a "Unexpected token < in JSON at position 0"
it hides some information but it is not really what, I want the entire page to redirect to a special route like the login or register page
is this done in the back-end with (asp net core) or should it be done by the front-end (reactjs)