<AuthenticateWithRedirectCallback />
The <AuthenticateWithRedirectCallback />
is used to complete a custom OAuth flow. Simply render the component under the route you passed as redirectUrl
to the authenticateWithRedirect
methods.
Usage
This example below uses built in Next.js pages, but you could use any routing library you want.
Once you have implemented your sign in flow, you can implement the callback page.
This example below is using the react-router-dom
library. You can use any routing library you want.
- Name
afterSignInUrl
- Type
string
- Description
Full URL or path to navigate after successful sign in.
- Name
afterSignUpUrl
- Type
string
- Description
Full URL or path to navigate after successful sign up.
- Name
redirectUrl
- Type
string
- Description
Full URL or path to navigate after successful sign in or sign up. This is the same as setting
afterSignInUrl
andafterSignUpUrl
to the same value.
- Name
secondFactorUrl
- Type
string
- Description
Full URL or path to navigate during sign in, if 2FA is enabled.
Feedback
Last updated on