Passwordless login

Users can use a one-time code instead of a password or follow a one-time link to log in to the application. The code or link can be sent via SMS or email. Code or link expires after 3 minutes.

The first time a user logs in to your application without a password, a new account is created automatically. You don’t have to implement additional logic for user sign-up.

Notice
If the user clicks the Unsubscribe button in the received email, they will no longer receive emails containing one-time passwords or links for account verification and password recovery.

Set up passwordless login

  1. Open your project in Publisher Account.
  2. In the side menu, click Login.
  3. Click Configure in the Login project pane.
  4. If classic login or social login are used in your Login project:
    1. Click Change Login method in the alert next to the Login method name.
    1. Choose Passwordless login.
    2. Click Save and set up. Previously saved settings will not be lost.
  1. Go to Passwordless login > Settings and select the type of passwordless login method you want to use.
  1. To send a one-time link with the code, enable magic links.
  2. Click Save changes.
Note
A phone number and/or email address form will be automatically added to the login widget after saving the changes.

Login via magic links is a type of passwordless login when a user logs in to an application by following a one-time link. Magic links are active on different devices: a user can enter a phone number and log in on a computer by following a link from SMS on their phone.

To enable magic links:

  1. Open your project in Publisher Account.
  2. In the side menu, click Login.
  3. Click Configure in the Login project pane.
  4. Go to the Passwordless login > Email settings section and set the Log in via magic link toggle to On.
  5. If needed, configure the email template:
    1. Go back to the Login project page.
    2. Go to the Customization > Email customization section.
    3. In the drop-down list, select the Confirmation email (with link and code) template.
    4. Change email text. The magic link will be embedded in the {{.Link}} label.
    5. Click Save changes.
  6. If needed, configure the SMS template:
    1. Go back to the Login project page.
    2. Go to the Customization > SMS customization section.
    3. Change SMS text in respective languages. The magic link will be embedded in the {{link}} label.
    4. Click Save changes.

To disable magic links, set the Log in via magic link toggle to Off. If needed, configure email and SMS template:

  • For emails, use the Confirmation email (with code) template.
  • When magic links are disabled, the {{link}} label is sent empty. If you change the SMS template when enabling magic links, make sure the text doesn’t include instructions to follow any links.

Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: January 22, 2024

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!