swift - Auth0 on iOS: Error Domain=com.auth0 Can't find connection name to use for authentication -
i receiving error when trying connect auth0 ios sdk:
error domain=com.auth0 code=18 "authentication failed" userinfo={nslocalizeddescription=authentication failed, nslocalizedfailurereason=can't find connection name use authentication}
here code:
let client : a0apiclient = a0lock.sharedlock().apiclient() client.signupwithemail(emailtextfield.text!, password: passwordtextfield.text!, loginonsuccess: true, parameters: nil, success: { (profile: a0userprofile?, tokeninfo: a0token?) in }) { (nserror) in print(nserror) }
i'm assuming have set connection inside parameters variable, how do that? couldn't find reference code in documentation.
thanks!
found it:
let parameters = a0authparameters(dictionary: [a0parameterconnection : "username-password-authentication"])
Comments
Post a Comment