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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -