-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Social Signup: Handle the case where users block third-party cookies/data #13983
Changes from 1 commit
a7ae224
6cdca3b
1791649
a25780c
8f37861
a5f8d5b
acafb76
e258338
b8c4049
e34bad4
46d8aa6
111f090
8084b81
8f0d8ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,9 +64,7 @@ class GoogleLoginButton extends Component { | |
|
||
if ( 'idpiframe_initialization_failed' === error.error ) { | ||
// This error is caused by 3rd party cookies being blocked. | ||
this.setState( { error: translate( 'Your privacy settings are blocking us from connecting to your Google account. ' + | ||
'Please enable "third-party cookies" in your browser or operating system, or sign up with an email address instead.' | ||
) } ); | ||
this.setState( { error: translate( 'Please enable "third-party cookies" to connect your Google account.' ) } ); | ||
return null; | ||
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. @Tug should we return rejected Promise in this case, too? 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. Yes, I believe we can simply remove that return statement. 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. If i removed the
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 think it's fine to show an error in the console here. if we want to hide it in a |
||
} | ||
|
||
|
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.
😞 17 existing translations will be lost with this change.