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 1d1cea9 commit 1a012acCopy full SHA for 1a012ac
WooCommerce/Classes/Extensions/WKWebView+Authenticated.swift
@@ -10,6 +10,9 @@ import class Networking.UserAgent
10
extension WKWebView {
11
static let wporgNoncePath = "/admin-ajax.php?action=rest-nonce"
12
13
+ /// Cookie authentication following WordPressKit implementation:
14
+ /// https://github.com/wordpress-mobile/WordPressKit-iOS/blob/trunk/WordPressKit/Authenticator.swift
15
+ ///
16
func authenticateForWPOrg(with credentials: WordPressOrgCredentials) throws -> URLRequest {
17
var request = try URLRequest(url: credentials.loginURL.asURL(), method: .post)
18
request.httpShouldHandleCookies = true
0 commit comments