Im looking for a way to prevent already authenticated users from going in the browser search bar and just redirecting themselves back to the login page, i have authorization and authentication implemented and i remove every link to the login page if the user is authenticated however the user can still manually type the URL and redirect himself.
Is there any policy that can stop authenticated users similar to policy.RequireAuthenticatedUser() but the opossite?
Or am i going the wrong way about it?