Skip to content

Commit 99e7a4d

Browse files
committed
Add comments to clarify why web flow is enabled for invalid credentials
1 parent c95abfb commit 99e7a4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WooCommerce/Classes/Authentication/AuthenticationManager.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,8 @@ private extension AuthenticationManager {
799799
///
800800
private func presentAppPasswordAlert(error: Error, for siteURL: String, in viewController: UIViewController) {
801801
let shouldEnableWebFlow: Bool = {
802+
/// Since our detection of invalid credentials error might be inaccurate,
803+
/// adding the fallback to web flow would unblock users from login.
802804
if let siteCredentialError = error as? SiteCredentialLoginError,
803805
case .invalidCredentials = siteCredentialError {
804806
return true

0 commit comments

Comments
 (0)