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.
Set up passwordless login
- Open your project in Publisher Account.
- In the side menu, click Login.
- Click Configure in the Login project pane.
- If classic login or social login are used in your Login project:
- Click Change Login method in the alert next to the Login method name.
- Choose Passwordless login.
- Click Save and set up. Previously saved settings will not be lost.
- Go to Passwordless login > Settings and select the type of passwordless login method you want to use.
- To send a one-time link with the code, enable magic links.
- Click Save changes.
Magic links
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:
- Open your project in Publisher Account.
- In the side menu, click Login.
- Click Configure in the Login project pane.
- Go to the Passwordless login > Email settings section and set the Log in via magic link toggle to On.
- If needed, configure the email template:
- Go back to the Login project page.
- Go to the Customization > Email customization section.
- In the drop-down list, select the Confirmation email (with link and code) template.
- Change email text. The magic link will be embedded in the
{{.Link}}
label. - Click Save changes.
- If needed, configure the SMS template:
- Go back to the Login project page.
- Go to the Customization > SMS customization section.
- Change SMS text in respective languages. The magic link will be embedded in the
{{link}}
label. - 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.
Found a typo or other text error? Select the text and press Ctrl+Enter.