We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b701e6c commit a175e86Copy full SHA for a175e86
WooCommerce/Classes/Authentication/SiteCredentialLoginUseCase.swift
@@ -160,6 +160,9 @@ private extension SiteCredentialLoginUseCase {
160
throw SiteCredentialLoginError.invalidLoginResponse
161
}
162
163
+ /// The login request comes with a redirect header to nonce retrieval URL.
164
+ /// If we get a response from this URL, that means the redirect is successful.
165
+ /// We need to check the result of this redirect first to determine if login is successful.
166
let isNonceUrl = response.url?.absoluteString.hasSuffix(Constants.wporgNoncePath) == true
167
168
switch (isNonceUrl, response.statusCode) {
0 commit comments