-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Offer "Log in with a different account" when OAuth is denied #24215
base: trunk
Are you sure you want to change the base?
Conversation
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24215-10dc0cc | |
Version | 25.8 | |
Bundle ID | org.wordpress.alpha | |
Commit | 10dc0cc | |
App Center Build | WPiOS - One-Offs #11704 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24215-10dc0cc | |
Version | 25.8 | |
Bundle ID | com.jetpack.alpha | |
Commit | 10dc0cc | |
App Center Build | jetpack-installable-builds #10733 |
This is a very clever solution and I like it a lot! I think we could tweak the messaging to be something like """ You can sign in with a different account if you need a different one. Tap "Use Different Account" to start. |
// Try to re-authenticate when user taps the "Deny" button. | ||
let reLogin = await withCheckedContinuation { continuation in | ||
DispatchQueue.main.async { | ||
let format = NSLocalizedString("wpComLogin.loginDenied.message", value: "You can sign in with a different account if you need a different one. Tap \"%@\" to start.", comment: "Message shown when user denies WordPress.com login, offering option to try with different account") |
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.
Please extract the localizable strings into Strings
, and I'd also extracting the "reLogin" code into a separate method to make it easier to follow the overall flow of the authenticate
method.
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.
👍 Addressed in 10dc0cc
See #24195 (comment) for context.
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-03-14.at.12.23.00.mp4
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: