Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func initialLogin(email: String, password: String, userAttributes: [AWSCognitoIdentityUserAttrib uteType], completion: @escaping (Bool, AWSTask<AnyObject>) -> ()) {
- setUserInfo(email: email, password: password, userAttributes: userAttributes)
- let person = userPool.getUser(email)
- let authDetails = AWSCognitoIdentityPasswordAuthenticationDetails(username: email, password: password)
- person.getDetails()
- self.passwordAuthenticationCompletion?.set(result: authDetails)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement