NavigateToSignIn
Automatically navigates the user to the sign-in page when rendered. Uses thenavigateToSignIn function from useNavigation and respects the redirect_uri query parameter if present.
Protected Route
Redirect URL
After successful sign-in, the user is redirected to:- The URL specified in
redirect_uriquery parameter (if present) - The
after_signin_redirect_urldeployment setting - The deployment’s frontend host (fallback)
redirect_uri parameter allows you to control where users land after completing sign-in. For example, navigating to /signin?redirect_uri=/dashboard will bring users to /dashboard after sign-in completes.
Related
- NavigateToSignUp - Navigate to sign-up
- useNavigation - Navigation utilities
- SignedIn - Conditional rendering
