Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. func initialLogin(email: String, password: String, userAttributes: [AWSCognitoIdentityUserAttrib uteType], completion: @escaping (Bool, AWSTask<AnyObject>) -> ()) {
  2. setUserInfo(email: email, password: password, userAttributes: userAttributes)
  3. let person = userPool.getUser(email)
  4. let authDetails = AWSCognitoIdentityPasswordAuthenticationDetails(username: email, password: password)
  5. person.getDetails()
  6. self.passwordAuthenticationCompletion?.set(result: authDetails)
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement