Lock Android v1 Passwordless
Lock Passwordless authenticates users by sending them an Email or SMS with a one-time password that the user must enter and confirm to be able to log in, similar to how WhatsApp authenticates you. This article will explain how to send a CODE using the
In order to be able to authenticate the user, your application must have the Email/SMS connection enabled and configured in your Auth0 Dashboard.
LockPasswordlessActivity authenticates users by sending them an Email or SMS (similar to how WhatsApp authenticates you). In order to be able to authenticate the user, your application must have the SMS/Email connection enabled and configured in your dashboard.
LockPasswordlessActivity is not included in
com.auth0:lock:aar as it's part of the library
lock-passwordless, but you can add it with this line in your
Then in your
AndroidManifest.xml register the following activities:
LockActivity, when a user authenticates successfully,
LockPasswordlessActivity will send an
LocalBroadcastManager and then finish itself (by calling
finish()). The activity that is interested in receiving this
Action (in this case the one that will show Lock) needs to register a listener in the
Then just start
LockPasswordlessActivity specifying the Passwordless type you want to use, so for Email
or just for SMS
and you'll see the SMS login screen
Passworless scenarios and types:
|Channel \ Mode||Code||Magic Link|
You can find more information about Magic Links here.