Send Sign-in Link To Email

Use the sendSignInLinkToEmail method to send a sign-in link to the user's email address, allowing them to sign in using the link.

Note: You'll have to send an email sign-in URL before a user can sign in via an email link.

Method

await FirebaseApp.firebaseAuth?.sendSignInLinkToEmail(email, settings);

Parameters

  • email (String): The email address of the user to whom the sign-in link will be sent.

  • settings (ActionCodeSettings): The settings for the action code, including options like url for the redirect after signing in and handleCodeInApp to determine whether to handle the code in the app.

Return

  • void: This method does not return a value.

This method sends a sign-in link to the specified email, which the user can use to authenticate without a password.

Last updated