Skip to content

Commit 67ec443

Browse files
committed
Add comment regarding nonce retrieval method
1 parent 3b6b192 commit 67ec443

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Networking/Networking/CookieNonce/CookieNonceAuthenticator.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import Foundation
55
/// This differs from WordPressKit's version by handling the nonce retrieval as a separate request
66
/// instead of a redirect from the login request - to fix issues with Pressable sites.
77
///
8+
/// This authenticator uses Ajax nonce retrieval method by default
9+
/// since we are not supporting sites with WP versions earlier than 5.6.0.
10+
///
811
final class CookieNonceAuthenticator: RequestRetrier & RequestAdapter {
912
private let username: String
1013
private let password: String

0 commit comments

Comments
 (0)