Without options an unauthenticated request is answered 401 Problem
Details. With signInPage, an unauthenticated browser navigation (see
RequireAuthOptions.signInPage) is answered 302 to the sign-in
page instead, carrying the requested path and query as returnTo — validated
by safeReturnTo, which the application's own login handler should
apply again before redirecting back. Every other unauthenticated request keeps
the 401.
Guard that requires authentication.
Without options an unauthenticated request is answered
401Problem Details. WithsignInPage, an unauthenticated browser navigation (seeRequireAuthOptions.signInPage) is answered302to the sign-in page instead, carrying the requested path and query asreturnTo— validated bysafeReturnTo, which the application's own login handler should apply again before redirecting back. Every other unauthenticated request keeps the401.