Configurer la trousse SDK pour Android
Tout dâabord, configurez la trousse SDK Android de maniÚre à pouvoir utiliser les méthodes sans mot de passe ci-dessous.Configuration Auth0 et de la trousse SDK Android
Lâutilisation de lâAPI Sans mot de passe nécessite lâutilisation de la version 1.20 ou supérieure de la trousse SDK Auth0 pour Android.
Demander le code
This example requests the code by callingpasswordlessWithEmail with the userâs email, PasswordlessType.CODE, and the name of the connection as parameters. On success, you may want to notify the user that their code is on the way, and perhaps route them to where they will input that code.
passwordlessWithSms pour envoyer le code par SMS.
Saisir le code
Once the user has a code, they can input it. Call theloginWithEmail method and pass in the userâs email, the code they received, and the name of the connection in question. Upon success, you receive a Credentials object in the response.
loginWithSms pour envoyer le code reçu par SMS et authentifier lâutilisateur.
La valeur par défaut de la permission est openid profile email.