Reading starts here
ChurnAtlas

3 code channels Auth0 can use on a database connection

Short answer. Auth0 can send one-time login codes by email, SMS, or voice on a database connection, and the field name you submit chooses the channel.

ChurnAtlas Editorial Team. How posts are made is set out in the editorial standards.

Published · Sources checked · 14 min read

  1. Inputs Your product plan, your permissions and the task you want to finish.
  2. Decision Whether the help page matches what you see on your screen.
  3. Next action Do the task on one test account, then record what you changed.

Auth0 can send a one-time login code over three channels on a standard database connection: email OTP, SMS OTP, and voice OTP. The field name in your request, email or phone_number, tells Auth0 which of these channels to use.

Big takeaways

  • Email OTP, SMS OTP, and voice OTP are the three channels Auth0 lists for standard database connections.
  • The one-time-code flow runs on the same database connection that already holds your users.
  • The Passwordless OTP grant has to be enabled before the flow can be used.
  • The field name you send, email or phone_number, selects the channel.

What the one-time-code grant covers

The starting point is scope. The Auth0 authentication API documentation states that the one-time-code flow "supports email OTP, SMS OTP, and voice OTP on standard database connections." That single sentence sets the boundary for this post: three channels and one connection type.

Each channel delivers a short code that the user types back into your login flow. The difference is where the code lands. Email OTP sends it to an inbox, SMS OTP sends it as a text message, and voice OTP delivers it through a phone call. From the user's side, all three work the same way: request a code, enter it, and sign in.

Operations staff should read the word "standard" closely. The sentence limits support to standard database connections. If a tenant is configured around a different connection type, this scope statement does not describe it, so the grant and the connection type are both checked first, along with the channel.

When a customer reports that codes are not arriving, the real question is whether the tenant is set up for the channel the customer expects. The three channels appear as separate items in Auth0's wording, so an email code and a text message are two different configurations to verify, even though they share one grant. Keep the names exact in your ticket notes: email OTP, SMS OTP, and voice OTP. Vague labels such as "passwordless" or "magic link" make it harder to tell which channel a customer actually tested.

Reusing the database connection that holds your users

The second point is where the codes live. Auth0 states that the one-time-code flow lets you "use one-time-code authentication from the same database connection that already holds your users." The code flow does not require a separate passwordless connection to hold the accounts. The connection that stores the user records is the same one that handles the codes.

For support work, this means the user record and the login method sit in one place. When you open a customer's tenant, the database connection you inspect is the same one that authenticates the customer for codes. You do not have to search for a second connection to find the account, and you do not have to reconcile two sets of users.

This also changes how you read a failed sign-in. If the account exists on the database connection but the code never arrives, the problem is more likely in channel setup, grant status, or the contact value stored on the user, rather than in a missing user.

The practical check is simple. Confirm the customer's account exists on the database connection the tenant uses for code sign-in. Then confirm the channel setup. Treat the two as separate steps so a delivery problem does not send you looking for a user that is already present.

Email, SMS and voice side by side

The three channels share the same database connection and the same grant, so the differences come down to the contact method and the channel name. The table below sets them side by side on the measure the source states directly: whether each one is supported on standard database connections.

Channel Name used in the source Supported on standard database connections
Email email OTP Yes
SMS SMS OTP Yes
Voice voice OTP Yes

The source lists all three as supported on standard database connections. You do not need to rank them when you configure a tenant. Each one is a valid choice on the same connection type.

The field name in the request selects the channel. Email OTP depends on an email address, while SMS OTP and voice OTP both depend on a phone number. That shapes support questions: the field name in the request determines which channel Auth0 uses for each challenge. Checking the stored value is often faster than checking the channel itself.

For handoffs, record which channel the customer chose and which contact value was used. If the customer says "I never got the text," the record should show whether the request targeted a phone number at all. Keeping the channel name and the contact field together prevents the common mix-up where an email problem gets reported as an SMS problem.

Turning on the Passwordless OTP grant

Before any channel can work, the grant has to be on. Auth0's instruction is direct: "Enable the Passwordless OTP grant in Auth0 Dashboard or Management API." The setting is the same whether you use the graphical interface or the API, so the choice comes down to how your team manages tenants.

The Dashboard suits one-off changes and quick checks. Support staff who already work in the Dashboard can open the tenant, find the grant setting, and confirm its state without writing code. The Management API suits repeatable setup, such as configuring many tenants with the same settings.

When you audit a customer's tenant, check the grant before you test any channel. A failed code request on an email, SMS, or voice path can look like a delivery fault when the real cause is that the grant was never enabled. Testing a channel against a tenant without the grant wastes time and gives misleading results.

A useful habit is to write the grant status into the ticket before troubleshooting. Note whether the Passwordless OTP grant is enabled, the connection type, and the channel the customer requested. With those three facts recorded, the next person who picks up the case can skip the setup checks and go straight to delivery or contact-value questions.

How Auth0 generates and delivers the code

Once the grant is on and the channel is chosen, the flow starts a challenge. Auth0 states how that step works: "Auth0 generates and delivers the code and returns an opaque auth_session." Two things happen on Auth0's side, and one thing comes back to your application. The code is created, the code is sent, and the application receives an opaque session value rather than the code itself.

The table below breaks that sentence into three steps so you can match each one to what you see in a support case.

Step What Auth0 does What your application receives
Generate the code Creates the one-time code Nothing directly
Deliver the code Sends the code over the chosen channel Nothing directly
Return the session Returns an opaque auth_session The auth_session value

The word "opaque" matters for support. Your application should treat the auth_session as a value to pass along, not as data to read. Staff should not expect to see the code inside the response, and a missing code in a response is not evidence that the code was never generated. The delivery step is what the customer experiences, so delivery problems show up at the customer's inbox or phone rather than in the response payload.

When you troubleshoot, separate the two sides. If the response returns an auth_session, the challenge was accepted, and the next question is delivery. If no auth_session comes back, the problem is earlier in the request, such as the grant, the connection, or the request fields. Keeping those two branches apart narrows the search quickly and avoids chasing the wrong layer.

How the field name picks the channel

The request itself carries the channel choice. If it sends a phone_number field, the phone path is targeted.

The figures below summarize the facts from this part of the setup. Use them as a quick reference when you check a request.

Item Count What it refers to
Channels supported on standard database connections 3 email OTP, SMS OTP, voice OTP
Field names that select a channel 2 email, phone_number
Grant to enable 1 Passwordless OTP grant
Session value returned 1 auth_session

The two field names do not map one-to-one onto the three channels, and that is worth remembering. The source names email and phone_number as the field names that select a channel, and the three channels are email OTP, SMS OTP, and voice OTP. When you review a request, confirm which field the application actually sent, because a phone-based request is the request that reaches the SMS or voice path.

A common support error is to assume the channel is set somewhere else in the tenant. The field in the request is the deciding input for each challenge. If the customer's app sends email, a text message will never be triggered for that attempt, no matter how the phone number is stored on the account. Check the request before blaming the tenant configuration.

Resolving the channel at challenge time

When a challenge starts, the channel choice is not left to a later lookup. Auth0 states that "Auth0 resolves the intent at challenge time and records it server-side against the auth_session." The intent, meaning which channel the request targeted, is captured when the challenge is created and stored on Auth0's side against the session value your application receives.

For support, this gives you a reference point. The auth_session connects the challenge to the intent recorded for it. When a customer later says the code arrived somewhere unexpected, you can start from the request that created the challenge and what it targeted, rather than from memory of what the customer's app did.

The quote describes the record that Auth0 keeps, not the steps your application takes afterward. Do not assume the channel can be changed partway through a session. Record the channel the customer selected at the start, and treat any mismatch as a question about the request that created the challenge. Keeping that order in your notes prevents a common error, where a later retry gets blamed for a problem that started with the first request.

Consolidating from a dedicated passwordless connection

A tenant may have previously used /passwordless/start with a dedicated passwordless connection. Auth0 addresses that case directly: "If you previously used /passwordless/start with a dedicated passwordless connection, you can consolidate onto your existing database connection instead." The wording presents consolidation as an option, so an existing dedicated setup is not described as broken.

Start by finding out which path the customer's application uses. If the app calls /passwordless/start against a dedicated passwordless connection, that tenant is in the situation the quote describes. If the app already uses the database connection flow, there is nothing to consolidate, and you can move on to channel checks.

When consolidation is the goal, support work falls into a few steps. Confirm that the customer's accounts exist on the database connection the tenant already uses, since the codes draw from that connection. Then identify the request path the application needs to move to, and confirm that the change is made on the application side as well as in the tenant. Finally, test each channel the customer depends on, because a tenant that works for one channel can still fail on another.

Record the before and after state in the ticket. A note such as "previously used a dedicated passwordless connection, now on the database connection" saves the next agent from repeating the investigation. It also makes clear which accounts were moved and which were left untouched.

Keeping one account for code sign-in

A single user record is the main reason one-time codes fit into an existing setup. Auth0 says the flow can "use one-time-code authentication from the same database connection that already holds your users." The account the customer already has is the account that receives the code, so there is no second identity to create for code sign-in.

For support, the rule is simple: look up the existing account before creating anything. A customer who already has an account and now wants a code is the same user, not a new one. Creating a duplicate account on a second connection would split the customer's history and make later support work harder.

This also affects how you explain the situation to the customer. You can tell them that code sign-in uses the account they already have. Do not promise anything about how other sign-in factors behave beyond what the source states. The quote covers the code flow on the database connection, and that is the boundary of what you can confirm from it.

When a customer reports a problem, check the account first, then the channel. If the account is present and the code still fails, the user record is likely fine; the next checks are the grant, the connection type, the channel setup, and the contact value. Keeping those two checks separate keeps the investigation short and accurate.

Which one should you pick?

Choosing a channel is a decision for the tenant owner, and the source gives you the facts needed to frame it. Auth0 lists three channels for standard database connections: email OTP, SMS OTP, and voice OTP.

Option Name in the source Field that selects it
Email email OTP email
SMS SMS OTP phone_number
Voice voice OTP phone_number

The table is an inference from the two field names, and the source does not specify how the phone path splits between SMS and voice. The source does not spell out how SMS and voice are told apart when both use the phone field, so check the full Auth0 page before you tell a customer how to choose between them.

Practically, the decision often depends on the contact data the user has. The field name in the request selects the channel, so a request that does not target a contact value will not reach the matching path. If the tenant offers only one channel to a customer, make sure the customer knows which contact value is needed. A channel that is supported in principle can still fail for an individual who has no matching value on file.

Checking the setup as a support agent

A quick setup check follows the order the source describes. Start with the grant. Auth0 instructs you to "Enable the Passwordless OTP grant in Auth0 Dashboard or Management API." If the grant is off, no channel will work, so this is the first item on the list.

Next, confirm what the challenge returns. Auth0 says that "Auth0 generates and delivers the code and returns an opaque auth_session." If your application receives an auth_session, the challenge was accepted, and the remaining question is delivery. If no auth_session comes back, the problem sits earlier in the request.

Last, check the intent. Auth0 "resolves the intent at challenge time and records it server-side against the auth_session." Compare the channel the customer chose with the field the application sent.

Write the three results in the ticket: grant status, auth_session received or not, and the channel that was targeted. With those recorded, the next agent can continue from the correct point rather than repeating the checks.

Related guides: Auth0 login email: 2 rules before customers sign in · One-time login code setup: 3 requirements at kickoff · Auth0 lockout settings: 5 checks before launch.

Reader questions

Can a customer receive a one-time code without a separate passwordless connection? Yes. Auth0 says the flow works "from the same database connection that already holds your users." The codes draw from the connection that already stores the account.

Which channels does Auth0 support on standard database connections? The source lists three: email OTP, SMS OTP, and voice OTP, all on standard database connections. Auth0's page is the reference for that list.

What decides whether a code goes by email or by phone? The request field decides it.

If the customer expects a text message, but the app sends email, what happens? The request targets the email channel, because the field name is what selects the channel. Check the request before you check the phone number on the account.

Do I need to change anything if the tenant used a dedicated passwordless connection before? The source says you can consolidate: "If you previously used /passwordless/start with a dedicated passwordless connection, you can consolidate onto your existing database connection instead." Consolidation is presented as an option rather than a requirement.

Can I tell which channel was used for a challenge after the fact? The source says Auth0 "records it server-side against the auth_session." The request fields and the auth_session are the references you have.

Should I create a new account when a customer wants to sign in with a code? No. The codes come from the database connection that already holds the user, so the existing account is the one to use. Look it up before you create anything.

Sources

Sources checked

Limits of this post

This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.