Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let userPool = AWSCognitoIdentityUserPool(forKey: "myApp")
- var name = AWSCognitoIdentityUserAttributeType()
- name.name = "name"
- name.value = nameEntry.text
- var phone = AWSCognitoIdentityUserAttributeType()
- phone.name = "phone_number"
- phone.value = "+1" + phoneNumberEntry.text!
- var email = AWSCognitoIdentityUserAttributeType()
- email.name = "email"
- email.value = emailEntry.text
- userPool.signUp("goats", password: passwordEntry.text!, userAttributes: [name, phone, email], validationData: nil)
- user.verifyAttribute("phone_number", code: verificationEntry.text!)
- user.confirmSignUp(verificationEntry.text!)
- self.user = userPool.getUser()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement