Reputation: 1080
I used Digits for mobile number OTP verification. After updating Xcode 7.3 to Xcode 8. I cant get OTP.
Now I getting the following error
enqueueRequest:sessionStore:requestingUser:completion: Invalid parameter not satisfying: sessionStore
Can anyone Help me?
Upvotes: 0
Views: 338
Reputation: 214
//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!)
}
Upvotes: 1