Navigate to the user profile URL
<RedirectToUserProfile/> component will navigate to the user profile URL which has been configured in your application instance. You can find the configuration on the Paths page.
This component will use the custom
navigate function from the
<ClerkProvider/> component if one is given - otherwise, it will trigger a full page reload with the new URL location.
Make sure you've followed the installation guide for Clerk React before running the snippets below.
The example below shows a page which is normally accessible by authenticated users. All other visitors (unauthenticated users) will get redirected to the sign in page.
This component accepts no props.