Fix build

This commit is contained in:
Ilya Laktyushin
2022-08-29 14:13:47 +02:00
parent 021e854f79
commit d66d2e34df

View File

@@ -1168,7 +1168,7 @@ public func privacyAndSecurityController(context: AccountContext, initialSetting
authorizationController.presentationContextProvider = controller authorizationController.presentationContextProvider = controller
authorizationController.performRequests() authorizationController.performRequests()
controller.authorizationCompletion = { [weak controller, weak codeController] credentials in controller?.authorizationCompletion = { [weak controller, weak codeController] credentials in
switch authorization.credential { switch authorization.credential {
case let appleIdCredential as ASAuthorizationAppleIDCredential: case let appleIdCredential as ASAuthorizationAppleIDCredential:
guard let tokenData = appleIdCredential.identityToken, let token = String(data: tokenData, encoding: .utf8) else { guard let tokenData = appleIdCredential.identityToken, let token = String(data: tokenData, encoding: .utf8) else {