Username/Email & Password authentication from native applications is disabled by default for new tenants as of 8 June 2017. Users are encouraged to use Universal Login and perform Web Authentication instead. If you still want to proceed you’ll need to enable the Password Grant Type on your dashboard first. See Application Grant Types for more information.
Log in with a database connection
To log in with a database connection, calllogin
with the user’s email, password, and the connection you want to authenticate with. The response is a Credentials
object.
openid profile email
.
Sign up with a database connection
To sign up with a database connection, call thesignUp
method, passing the user’s email, password, and connection name.