-
Notifications
You must be signed in to change notification settings - Fork 402
feat(clerk-js): Authenticate with popup #5239
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
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
1a9ebc7
wip
dstaley b672410
Merge branch 'main' into ds.feat/auth-with-popup
dstaley 6b35b89
feat(clerk-js): Use Account Portal for popup callback
dstaley 819e7ab
chore: Add changeset
dstaley 93c0dbb
fix(clerk-js): Only allow accountPortalDomain messages
dstaley 1c3f2cd
feat(clerk-js): Add oauthFlow prop
dstaley bc25b7f
feat(clerk-js): Implement popup authentication flow for sign up
dstaley b6ae69a
feat(clerk-js): add webcontainer-api.io to popup origns
dstaley aecbfa9
fix(clerk-js): Support modal sign in/sign up with return_url parameter
dstaley 0d7249e
Merge branch 'main' into ds.feat/auth-with-popup
dstaley 5ca29b7
feat: Add oauthFlow prop to SignInButton
dstaley a8a07ca
test(e2e): Add e2e test for oauth popup flow
dstaley f80fb86
add new lovable preview domain to pop-up list
mwickett f5aaaae
fix(clerk-js): Use DB JWT on both URLs
dstaley f8017d1
fix(clerk-js): Remove popup handling now that AP handles it
dstaley 10de915
Merge branch 'main' into ds.feat/auth-with-popup
dstaley d105c04
fix(clerk-js): Update max size limits
dstaley 1dfd8ec
fix(clerk-js): Update max size limits
dstaley adfd1ad
fix(clerk-js): Update IsomorphicClerk type
dstaley 73035da
fix(clerk-js): Mock global fetch
dstaley 262707b
Merge branch 'main' into ds.feat/auth-with-popup
dstaley f41aa5d
cleanup(clerk-js): rm console.log
dstaley 7f6ed87
fix(clerk-js): originPrefersPopup util function
dstaley a3a3dc8
fix(types,react): Add oauthFlow prop to SignUpButton
dstaley c87acd1
feat(clerk-js): Improve loading state for popup auth
dstaley a60b18d
chore(repo): Update changeset
dstaley a53c7b9
chore(clerk-js): Add comments
dstaley b9e5009
chore(clerk-js): Sort imports
dstaley 41b69f4
Merge branch 'main' into ds.feat/auth-with-popup
dstaley 1d988be
fix(clerk-js): Always call toString()
dstaley e9c24bf
fix(clerk-js): Restore idle state if popup is blocked
dstaley 684fd8f
Merge branch 'main' into ds.feat/auth-with-popup
dstaley b2cfec2
fix(clerk-js): Use shared buildAccountsBaseUrl utility
dstaley 3b269a9
fix(clerk-js): Use logical OR instead of nullish coalescing
dstaley 2f80ccb
feat(clerk-js): Move authenticateWithPopup methods to signIn/signUp
dstaley b750eac
Merge branch 'main' into ds.feat/auth-with-popup
dstaley d2fddec
cleanup(react): Remove isomorphic withPopup methods
dstaley 642664d
fix(clerk-js): Increase bundlewatch thresholds
dstaley 5852ecb
cleanup(react): Remove unused type
dstaley 9788a67
Merge branch 'main' into ds.feat/auth-with-popup
dstaley 367577b
Merge branch 'main' into ds.feat/auth-with-popup
dstaley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@clerk/clerk-js': minor | ||
| '@clerk/types': minor | ||
| --- | ||
|
|
||
| Add support for the `oauthFlow` prop on `<SignIn />` and `<SignUp />`, allowing developers to opt-in to using a popup for OAuth authorization instead of redirects. | ||
|
|
||
| With the new `oauthFlow` prop, developers can opt-in to using a popup window instead of redirects for their OAuth flows by setting `oauthFlow` to `"popup"`. While we still recommend the default `"redirect"` for most scenarios, the `"popup"` option is useful in environments where the redirect flow does not currently work, such as when your application is embedded into an `iframe`. We also opt applications into the `"popup"` flow when we detect that your application is running on a domain that's typically embedded into an `iframe`, such as `loveable.app`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a significant reason to leave the logs ?