Auth0 Home Blog Docs

Is there support for passwordless magic links authentication on Android?

android
passwordless

#1

I was going through the passwordless docs here: https://auth0.com/docs/connections/passwordless.

Is there support for passwordless login using magic links (vs one time codes) on the Android platform as there is with the iOS platform?

As an example, Slack for Android supports magic links, but there are some in between steps. The magic link in the slack login email launches the user to the slack website, and from there, there is a link of the form slack://.../magic-login/... to launch the slack app on Android.


#2

There is this information about magic links for Android: https://auth0.com/docs/libraries/lock-android/passwordless-magic-link

That is currently not linked from the main documentation for passwordless, but I’ll make a request to include a link to this page in the Android section so that the main documentation is not misleading.


#3

Thanks @jmangelo for the reply. I tried it out and the link sent over email did not launch the app. What auth0 did was send me an email with contents like this:

Your verification link is: https://mindstronghealth.auth0.com/android/com.auth0.logindemo/email?code=966738

And when I clicked on the link, it just took me to a web page with the following contents, rather the launching the app:

Your verification code is 966738.

Has this been tested on Android or do you think I missed a step?

thanks
rajeev


#4

Thanks @jmangelo for the reply. I tried it out and the link sent over email did not launch the app. What auth0 did was send me an email with contents like this:

Your verification link is: https://mindstronghealth.auth0.com/android/com.auth0.logindemo/email?code=966738

And when I clicked on the link, it just took me to a web page with the following contents, rather the launching the app:

Your verification code is 966738.

Has this been tested on Android or do you think I missed a step?

thanks
rajeev


#5

I never did this myself as I don’t have much knowledge on mobile platforms, but given it’s documented it means that it was tested at least at the time the docs were written. Most of the app linking stuff is specific to Android, the only thing Auth0 does is allow you to configure the assetlinks.json through the Dashboard. For troubleshooting, you may want to see if you can make app linking work with a custom assetlink.json not generated by Auth0 to trace the possible cause of the problem.


#6

Thanks @jmangelo ; I actually did get it sort of working; I forgot to put my domain in; But when launching my app, it still asked me if i wanted to open w/safari or my app eventhough i had autoVerify=“true”. I’ll revisit this again later; thanks for your help!


#7

Thanks @jmangelo ; I actually did get it sort of working; I forgot to put my domain in; But when launching my app, it still asked me if i wanted to open w/safari or my app eventhough i had autoVerify=“true”. I’ll revisit this again later; thanks for your help!


#8