βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π shadcn/directory/clerk/clerk-docs/reference/components/control/authenticate-with-redirect-callback β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
<AuthenticateWithRedirectCallback /> component is used to implement custom OAuth flows. It handles the OAuth callback and completes the authentication process.
sdk: astro, chrome-extension, nextjs, nuxt, react, react-router, remix, tanstack-react-start, vue, js-frontendThe <AuthenticateWithRedirectCallback /> component is a crucial part of implementing custom OAuth flows in your application. It serves as the callback handler for the authentication process initiated by the authenticateWithRedirect() method. Render it on the route specified as the redirectUrl in your authenticateWithRedirect() call.
This component automatically handles the OAuth callback, completing the authentication process and managing the user's session. It uses the handleRedirectCallback() method under the hood.
For an example of how to use the <AuthenticateWithRedirectCallback /> component, see the custom flow guide.
All props are optional.
<Properties> - `continueSignUpUrl?` - `string | undefined | null`The full URL or path to navigate to if the sign up requires additional information.
signInUrl?stringThe full URL or path where the <SignIn /> component is mounted.
signUpUrl?stringThe full URL or path where the <SignUp /> component is mounted.
signInFallbackRedirectUrl?stringThe fallback URL to redirect to after the user signs in, if there's no redirect_url in the path already. Defaults to /. It's recommended to use the environment variable instead.
signUpFallbackRedirectUrl?stringThe fallback URL to redirect to after the user signs up, if there's no redirect_url in the path already. Defaults to /. It's recommended to use the environment variable instead.
signInForceRedirectUrl?stringIf provided, this URL will always be redirected to after the user signs in. It's recommended to use the environment variable instead.
signUpForceRedirectUrl?stringIf provided, this URL will always be redirected to after the user signs up. It's recommended to use the environment variable instead.
firstFactorUrl?string | undefinedThe full URL or path to navigate to during sign in, if first factor verification is required.
secondFactorUrl?string | undefinedThe full URL or path to navigate to during sign in, if multi-factor authentication is enabled.
resetPasswordUrl?stringThe full URL or path to navigate to during sign in, if the user is required to reset their password.
transferable?booleanA boolean that indicates whether or not sign in attempts are transferable to the sign up flow. Defaults to true. When set to false, prevents opaque sign ups when a user attempts to sign in via OAuth with an email that doesn't exist.
verifyEmailAddressUrl?string | undefined | nullThe full URL or path to navigate to after requesting email verification.
verifyPhoneNumberUrl?string | undefined | nullThe full URL or path to navigate to after requesting phone verification. </Properties>
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ