-
Notifications
You must be signed in to change notification settings - Fork 453
feat(clerk-js): Improve redirects on OAuth callback #1563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c596cf9
47f7c4f
a8d7796
64ffc86
7841cbd
0e3acf8
f0d2c6c
fae3436
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@clerk/clerk-js': minor | ||
| '@clerk/types': minor | ||
| --- | ||
|
|
||
| Improve redirects on OAuth callback. Now, if you try to sign up with a provider that allows unverified accounts, it will | ||
| navigate to the appropriate change when needed, fixing the broken flow. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -451,6 +451,16 @@ export type HandleOAuthCallbackParams = { | |
| * Full URL or path to navigate after an incomplete sign up. | ||
| */ | ||
| continueSignUpUrl?: string | null; | ||
|
|
||
| /** | ||
| * Full URL or path to navigate after requesting email verification. | ||
| */ | ||
| verifyEmailAddressUrl?: string | null; | ||
|
|
||
| /** | ||
| * Full URL or path to navigate after requesting phone verification. | ||
| */ | ||
| verifyPhoneNumberUrl?: string | null; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓ Are these required for this fix? Seems like this is a broader API change for our components.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It shouldn't need these, but for sign-in, using a relative URL won't work. I want to redirect in these two cases:
For the first one to work, a relative URL like Or I might be possibly missing something.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, thanks for explaining. I guess the problem is the the transfer flow from sign in? We are on the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello everyone, is there a design document explaining the changes proposed here?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @nikosdouvlis, there is no design document for this, but there is more information about the goal of this task in the ticket: https://linear.app/clerk/issue/USR-248 Do you have any concerns about these changes? |
||
| }; | ||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.