Passwordless authentication with one-time code
Ory Network allows users to authenticate through a one-time code sent via email. This is useful for use-cases where users need to be onboarded through a minimal authentication process.
The one-time code method consists of a two-step process. The first step the user is required to enter their email address. In the second step they are prompted to enter the one-time code sent to their email address.
There is a slight difference between the login and registration flows. In the login flow, only the user's email address is required. In the registration flow, the user is required to enter their email address and other required traits set by the Identity Schema.
Below are examples of the one-time code authentication method in action.
In the registration flow below we are only presented an input field for the email address, as we have not defined any other traits in the Identity Schema.
Configuration
This feature is in preview. Please report any issues to support@ory.sh or contact us in the Ory Community.
By default the one-time code strategy is disabled. To start using the one-time code strategy, apply this configuration:
- Ory Console UI
- Ory CLI
- Full Config
You can enable passwordless with one-time code in the Ory Network Console UI in the Authentication -> Passwordless login menu.
ory patch identity-config <your-project-id> \
--add '/selfservice/methods/code/passwordless_enabled=true'
selfservice:
methods:
code:
passwordless_enabled: true