---
schema_version: "1"
id: ad0d35ecc55d13d67b1ee01cf6a5432d955ee914988b16d24171bf3123b311ba
title: Email or Phone Number Registration with Passwordless Login
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/external_identity_passwordless_login_discovery_parent.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.external_identity_passwordless_login_discovery_parent.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 02a79557e0245dee18aaf51d55ee097eec5d1deba7200f06f22540675cbab76c
description: You can implement passwordless login with email addresses and phone numbers. Create a Login Discovery page from Experience Workspaces. Then you can customize the LoginDiscovery handler with Apex.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Email or Phone Number Registration with Passwordless Login

You can implement passwordless login with email addresses and phone numbers. Create a Login Discovery page from Experience Workspaces. Then you can customize the LoginDiscovery handler with Apex.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

## Implementation Steps

- **[Customize the LoginDiscovery Handler](https://help.salesforce.com/s/articleView?id=xcloud.external_identity_passwordless_login_customize_discovery_handler.htm&release=264.0.0&type=5)**  
    After you create a Login Discovery page, continue setting up passwordless login with an email address or phone number by modifying the autogenerated Apex LoginDiscovery handler. By customizing the handler, you control the login process while Salesforce handles verification. The handler finds users based on the identifier that they provide on the login page, such as their email address. It then checks which verification methods the user has previously registered. The controller logs in the user by whichever method is configured.
- **[Create Custom Error Messages in the Login Discovery Handler](https://help.salesforce.com/s/articleView?id=xcloud.external_identity_login_discovery_custom_error_exception.htm&release=264.0.0&type=5)**  
    If a user makes a mistake when trying to log in to your site, the Apex handler displays a generic error message. You can customize the error message that appears on the login page using the `Auth.DiscoveryCustomErrorException` exception.