Benefits of Using Prelude with Auth0
- Improved SMS Deliverability – Prelude offers high success rates for message delivery, reducing the risk of authentication failures.
- Anti-Fraud Protection – Prelude’s advanced fraud detection system helps prevent abuse of your authentication system by identifying and blocking suspicious patterns.
- Multi-Region Routing – Prelude automatically routes messages through the optimal carrier network based on the destination country, ensuring fast delivery worldwide.
- Multi-Channel Support – Prelude supports SMS, WhatsApp, Viber and RCS channels for verification codes, giving your users more flexibility in how they receive authentication codes.
- Seamless Integration – Works effortlessly with Auth0’s phone authentication, allowing you to set up in minutes.
Prerequisites
- An Auth0 project.
- A Prelude account.
Step 1: Configure Prelude for Auth0
- Create a new Secret Key for your Auth0 integration on Settings > API Keys and don’t forget to save or copy it.
- Enable the Auth0 integration by going to Settings > Integrations > Auth0 in your Prelude’s Dashboard.
- Create a new Webhook Key for your Auth0 integration and don’t forget to save or copy it.
Step 2: Add a custom phone provider with the Auth0 Dashboard
Follow these steps to connect Prelude to your Auth0 project as a custom phone provider:- Open the Auth0 Dashboard and go to Branding > Phone Provider.
- On the Phone Message Provider page, you’ll notice Twilio is selected by default.
- In the Phone Provider section, select the Custom option.
- Under Delivery Method, choose Text and Voice. Both are supported by Prelude, but Voice should be explicitly enabled from Prelude dashboard.
- In the Provider Configuration area:
- Click the key icon to add a secret. Name it
PRELUDE_SECRET_KEY
and paste your Prelude API Key. - Click the box icon to add dependencies:
- Add
@prelude.so/sdk
(leave the version field empty). - Add
ua-parser-js
(leave the version field empty).
- Add
- Click the key icon to add a secret. Name it
- Paste the following code into the editor. This code will send verification requests to Prelude and enrich them with device and context signals for better security and deliverability.
Provider Configuration
- Click the Save button at the bottom of the page to apply your configuration.
- (Optional) If you created your Auth0 tenant before September 2025, you may need to enable Use Tenant-Level Messaging Provider in Security > Multi-factor Auth (MFA) > Phone number.
If you are already using Prelude with Auth0, contact our support team at support@prelude.so after the migration to see your conversion rate. Migration will be seamless when you enable Use Tenant-Level Messaging Provider.
Step 3: Set Up the Verification Webhook
To enable Prelude to verify Auth0 authentication events, you’ll need to configure a log stream webhook in your Auth0 dashboard. Follow these steps:- In the Auth0 dashboard, navigate to Monitoring > Log Streams.
- Click Create Log Stream.
- Choose Custom Webhook as the stream type.
- Name your log stream (e.g.,
Prelude Check
) to easily identify it later. - Fill in the configuration fields as follows:
Setting | Value / Action |
---|---|
Name | Enter a descriptive name (e.g., Prelude Check ). |
Payload URL | Paste the webhook URL from your Prelude dashboard’s Auth0 configuration. |
Authorization Token | Enter the Webhook key’s secret from your Prelude dashboard’s Auth0 configuration. |
Content Type | application/json |
Prioritized Logs | Leave unchecked. |
Filter by Log Event Category | Select User/Behavioral - Notification and Other logs. |
Starting Cursor | Leave unchecked. |
Obscure log stream data | Enable XXXHash (recommended for privacy), but uncheck “phone” so Prelude can match authentications. |
Content Format | Select JSON object. |
- Click Save to apply your webhook configuration.
Note: It’s important to leave the “phone” field unobscured so Prelude can properly process and verify phone number authentications. All other sensitive fields can remain obscured for privacy.Once saved, Auth0 will begin sending relevant authentication events to Prelude for verification. To learn more about enabling and configuring MFA and passwordless authentication in Auth0, refer to: