Skip to content

Commit d936954

Browse files
committed
rename handlers with proper typealiased names
1 parent e1a2031 commit d936954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift-sdk/Internal/AuthManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class AuthManager: IterableInternalAuthManagerProtocol {
4242
}
4343

4444
// @objc attribute only needed for the pre-iOS 10 Timer constructor in queueAuthTokenExpirationRefresh
45-
@objc func requestNewAuthToken(hasFailedPriorAuth: Bool = false, onSuccess: ((String?) -> Void)? = nil) {
45+
@objc func requestNewAuthToken(hasFailedPriorAuth: Bool = false, onSuccess: AuthTokenRetrievalHandler? = nil) {
4646
guard !pendingAuth else {
4747
return
4848
}
@@ -92,7 +92,7 @@ class AuthManager: IterableInternalAuthManagerProtocol {
9292
queueAuthTokenExpirationRefresh(authToken)
9393
}
9494

95-
private func onAuthTokenReceived(retrievedAuthToken: String?, onSuccess: ((String?) -> Void)?) {
95+
private func onAuthTokenReceived(retrievedAuthToken: String?, onSuccess: AuthTokenRetrievalHandler?) {
9696
pendingAuth = false
9797

9898
authToken = retrievedAuthToken

0 commit comments

Comments
 (0)