我使用 Digits 进行手机号码 OTP 验证。将 Xcode 7.3 更新到 Xcode 8 后。我无法获得 OTP。
现在我收到以下错误
enqueueRequest:sessionStore:requestingUser:completion:无效参数不满足:sessionStore
谁能帮我?
我使用 Digits 进行手机号码 OTP 验证。将 Xcode 7.3 更新到 Xcode 8 后。我无法获得 OTP。
现在我收到以下错误
enqueueRequest:sessionStore:requestingUser:completion:无效参数不满足:sessionStore
谁能帮我?
//just paste this
let authButton = DGTAuthenticateButton(authenticationCompletion: { (session, error) in
if (session != nil) {
// TODO: associate the session userID with your user model
let message = "Phone number: \(session!.phoneNumber)"
let alertController = UIAlertController(title: "You are logged in!", message: message, preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: .none))
self.present(alertController, animated: true, completion: .none)
} else {
NSLog("Authentication error: %@", error!.localizedDescription)
}
})
authButton?.center = self.view.center
self.view.addSubview(authButton!)
}