Skip to content

Commit dcb6a33

Browse files
lint
Signed-off-by: Marino Faggiana <marino.faggiana@nextcloud.com>
1 parent 707b2f4 commit dcb6a33

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/NextcloudKit/NextcloudKit+Login.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Alamofire
77
import SwiftyJSON
88

99
public extension NextcloudKit {
10-
// MARK: - App Password
10+
// MARK: - App Password / Onetime
1111

1212
/// Retrieves an app password (token) for the given user credentials and server URL.
1313
///
@@ -106,12 +106,12 @@ public extension NextcloudKit {
106106
/// - taskHandler: Callback for observing the underlying URLSessionTask.
107107
/// - completion: Returns the token string (if any), raw response data, and NKError result.
108108
func getAppPasswordOnetime(url: String,
109-
user: String,
110-
onetimeToken: String,
111-
userAgent: String? = nil,
112-
options: NKRequestOptions = NKRequestOptions(),
113-
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in },
114-
completion: @escaping (_ token: String?, _ responseData: AFDataResponse<Data>?, _ error: NKError) -> Void) {
109+
user: String,
110+
onetimeToken: String,
111+
userAgent: String? = nil,
112+
options: NKRequestOptions = NKRequestOptions(),
113+
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in },
114+
completion: @escaping (_ token: String?, _ responseData: AFDataResponse<Data>?, _ error: NKError) -> Void) {
115115
let endpoint = "ocs/v2.php/core/getapppassword-onetime"
116116
guard let url = self.nkCommonInstance.createStandardUrl(serverUrl: url, endpoint: endpoint) else {
117117
return options.queue.async { completion(nil, nil, .urlError) }

0 commit comments

Comments
 (0)