From 8c8dc85dc26b0f15e4c04b1d5ecf38118075ddd1 Mon Sep 17 00:00:00 2001 From: Sanchit Mehta Date: Mon, 29 Jun 2026 11:47:36 +0530 Subject: [PATCH] docs: fix wrong variable and add deprecation callout in EXAMPLES.md --- EXAMPLES.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index 3667b97a0..b87ce7b83 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -525,6 +525,8 @@ async function performTokenExchange() { // Note: exchangeToken() is deprecated - use loginWithCustomTokenExchange() instead ``` +> ⚠️ **Deprecated** — `exchangeToken()` will be removed in the next major version. Use `loginWithCustomTokenExchange()` instead. + ### Required Auth0 Configuration 1. **Create Token Exchange Profile** in Auth0 Dashboard: @@ -1305,9 +1307,7 @@ const emailEnrollment = await auth0.mfa.enroll({ email: 'user@example.com' }); -const oobCode = voiceEnrollment.oobCode; // Use this code to complete enrollment verification - -// Use this code to complete enrollment verification +const oobCode = emailEnrollment.oobCode; // Use this code to complete enrollment verification ``` #### Enrolling Push Notification