
Open
Posted
•
Ends in 2 hours
Paid on delivery
I already receive the OTP successfully through MSG91 and can confirm that the code entered is correct, yet the login flow halts right after verification—no session token ever comes back. This exact flow used to work when the OTP was generated in-app, so the break clearly appeared after switching to SMS. From the traces I see, the culprit sits in the OTP verification API response handling. The endpoint should return a JSON object containing status and token, and I do get an error message on failure, so you will have access to stack traces and log lines to speed up diagnosis. What I need is a clean fix that: • Parses the JSON response correctly, • Hands the token to the session-generation middleware, and • Restores a smooth backend auth flow exactly as before the switch. Once the patch is applied I’ll test by requesting an OTP, submitting it, and confirming that the user session is created and maintained across subsequent endpoints. Please be comfortable digging into MSG91 callback structures, token middleware, and any mis-mapped fields that may have crept in during the migration.
Project ID: 40470681
40 proposals
Open for bidding
Remote project
Active 7 hours ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
40 freelancers are bidding on average ₹22,841 INR for this job

Your MSG91 integration is returning the OTP response but the token handoff to your session middleware is breaking - I've debugged this exact scenario twice before when teams migrate from in-app to SMS verification. The issue is almost always a field mismatch between what MSG91 sends back and what your auth controller expects. Quick question - are you using MSG91's verify API or the sendOTP API with manual validation? And is your session middleware expecting the token in the response body or does it need to be passed through a specific header? Here's the fix approach: - JSON PARSING: Add explicit error handling around json_decode to catch malformed MSG91 responses and log the raw payload before parsing. - TOKEN EXTRACTION: Map MSG91's response structure (usually nested under "data" or "message") to your existing session token field - I'll trace the exact path using your stack logs. - MIDDLEWARE HANDOFF: Ensure the token reaches your session generator with the correct variable name and format (JWT vs plain string matters here). - CALLBACK VALIDATION: Verify MSG91's success status codes (200 vs 202) match your conditional logic so the flow doesn't exit early. I've patched similar breaks in 3 PHP backends where the migration from local OTP to third-party SMS created silent failures in the response chain. Let's schedule a 15-minute call where you share one failed request log - I'll pinpoint the exact line where the token drops and give you the patch before we even start the contract.
₹22,500 INR in 7 days
6.6
6.6

Hi, I came across your project "Fix SMS OTP Authentication -- 2" and I'm confident I can help you with it. About Me: I'm a full stack developer and agency owner with over 8+ years of experience in PHP, Mobile App Development, API Development, Android, JSON. , and I understand exactly what’s needed to deliver high-quality results on time. Why Choose Me? - ✅ Expertise in required Technologies and 1 year post deployment free support - ✅ On-time delivery and excellent communication - ✅ 100% satisfaction guarantee Let’s discuss your project in more detail. I’m available to start immediately and would love to hear more about your goals. Looking forward to working with you! Best regards, Deepak
₹25,000 INR in 7 days
5.8
5.8

Drawing on my extensive background as a Full-Stack Developer, I'm in a strong position to solve your issues with OTP verification and get your backend authentication flow back up to speed. Over my 7+ years of professional experience, I have dealt with comparable challenges and developed clever solutions. I can ensure that the JSON response is parsed correctly, the session token is efficiently handed to the middleware, and that your backend auth flow is smoothly restored - just as it was before migrating to SMS verification. As an adaptable developer, I am confident in successfully navigating your system's unique callback structures and identifying any mis-mapped fields that may have occurred during migration. Over the years, I have honed my abilities to diagnose complex problems by analyzing detailed stack traces and log lines. This skill will be invaluable to pinpointing and addressing the 'break' in your current system. Clients choose me repeatedly because they appreciate my zero ghosting policy and untiring dedication to clear communication, which includes daily updates and realistic timelines. This ensures that you remain fully aware of project progress at all times.
₹20,000 INR in 2 days
4.4
4.4

SMS OTP flows fail most often at three points: delayed delivery, incorrect token validation logic, or session expiry between send and verify. Debugged Firebase Phone Auth and Twilio OTP for Flutter apps where tokens weren't verifying despite correct input. Fixed race conditions and timeout handling. Which OTP provider are you using, and is the issue happening on both platforms or just one?
₹25,000 INR in 7 days
3.1
3.1

✨ I can fix this SMS OTP authentication issue because the SMS delivery is already working and the failure is clearly after verification, around response parsing and session token handoff. I would trace the MSG91 verification response, compare it with the old in app OTP flow, and check exactly where the backend expects status, user data, token, or verification fields. Since the issue started after moving from in app OTP to SMS OTP, the likely cause is a changed JSON structure, mis mapped field, missing success flag, or middleware not receiving the token payload it needs. Once the root cause is found, I will patch the backend cleanly, restore token generation, confirm the session stays active across protected endpoints, and share a short handoff note explaining what broke and what was changed. Please share the stack traces, MSG91 response sample, and auth middleware files, and I can start directly from the failing point. Best regards Ankit
₹12,500 INR in 2 days
3.0
3.0

Hello, I can help diagnose and fix the OTP authentication flow issue caused after the MSG91 migration. Based on your description, the problem likely sits in the OTP verification response parsing or token handoff logic between the MSG91 verification endpoint and your session middleware. I have experience working with OTP authentication systems, JWT/session middleware, API integrations, JSON response handling, and debugging authentication flows involving third-party SMS providers such as MSG91. I can audit the verification endpoint, inspect the callback/response structure from MSG91, identify any field mismatches or malformed parsing logic, and restore the token generation flow so successful OTP verification correctly creates and maintains authenticated user sessions across subsequent endpoints. I’m also comfortable tracing middleware execution, session persistence, async request handling, and error propagation using stack traces and backend logs to isolate the exact break point quickly. My focus will be on delivering a clean, stable fix that restores the original seamless login experience while ensuring the authentication flow remains secure, maintainable, and resilient against future provider-side response changes.
₹40,000 INR in 7 days
2.5
2.5

Most freelancers will focus on features, but the crux of your issue lies in the migration itself, not the SMS system. The problem isn't just about the OTP verification API—it's about maintaining session flow post-verification. This shift has introduced a glitch in token handling, disrupting the backend auth process. To swiftly resolve this, I propose a meticulous approach. By accurately parsing the JSON response, seamlessly passing the token to the middleware, and restoring the previous auth flow, we can reestablish a seamless user experience. I'll delve into the MSG91 callback structure, fine-tune the token middleware, and address any field discrepancies. Once implemented, I'll rigorously test the system to ensure the smooth generation and retention of user sessions. Let's chat further about how we can restore your system's functionality effortlessly.
₹26,250 INR in 7 days
1.6
1.6

Hey — read your post. Token never returns after MSG91 verify is a classic post-migration symptom: either the response shape from MSG91 doesn't match what the session middleware is destructuring, or the success-status check is comparing the wrong type. Three things I'd check first: (1) the actual JSON keys MSG91 returns vs what the verify-OTP handler is reading, (2) whether the migration changed the success check (in-app flow often used a boolean while MSG91 returns a string like "success" or "200"), (3) whether the session-token middleware is even being invoked or short-circuiting on the new response shape. With the stack trace and log lines you mentioned, this is usually a same-day fix once we see the code. Happy to start as soon as you share repo access plus one failing trace. Ping me — we can have it green by tomorrow. — Rohan, APIE Tech
₹15,000 INR in 3 days
1.5
1.5

⭐⭐⭐⭐⭐ Senior Backend Developer & Authentication Specialist ⭐⭐⭐⭐⭐ Hello there, I am a backend developer specialising in OTP authentication flows and API response handling with MSG91 integration experience. A verification flow that worked with in-app OTP but breaks after switching to SMS almost always has one specific cause — the MSG91 webhook response structure differs from the in-app verification response, and the field mapping feeding the token middleware is referencing a key that no longer exists or has been renamed in the new response object. Debugged MSG91 callback handling, JSON response parsing mismatches, and session token middleware failures in PHP and Node.js backends. The stack traces and log lines you have will pinpoint the exact field mismatch within minutes of access. The fix is targeted — correct the response parsing, remap the token field to the session middleware, and verify the auth flow end-to-end without touching anything outside the verification handler. What backend language and framework is the application built on, and can you share a sanitised example of the MSG91 response structure you're currently receiving versus what the middleware expects?
₹25,000 INR in 7 days
1.0
1.0

With over a decade of experience in Full Stack Development and a focused skill set aligned with your project needs, I believe I am the perfect candidate to address this particular issue you are experiencing. In the past, I have worked on complex authentication systems and SMS integrations for large-scale CRMs, where I had to deeply delve into callbacks, middleware, and JSON parsing and manipulation, which are exactly the areas your project is concerned with. I thrive at quickly identifying issues within existing systems and devising clean solutions with minimal disruption. My background in API Development and Backend Development, particularly my proficiency in PHP, grants me a nuanced understanding of how an application's various components interact for synchronicity. Furthermore, my familiarity with MSG91 makes troubleshooting their callback structures more efficient. Let's get your login flow back on track - hired me and consider it done!
₹12,500 INR in 7 days
0.0
0.0

✦ The issue is very likely happening between the MSG91 OTP verification response and your existing session/token middleware, especially if the old in-app OTP flow was working before the migration. I can trace the full verification flow, inspect the JSON parsing logic, validate MSG91 callback fields, and restore proper token/session generation so the authentication pipeline behaves exactly as before. I’ll debug: • MSG91 verify response handling • JSON/token mapping issues • Session middleware integration • Auth persistence across protected endpoints • Any edge-case failures in callback or token creation flow Since you already have logs and reproducible behavior, this should be a focused backend debugging task rather than a full auth rebuild. ✦ I can start immediately and provide both the permanent fix and a short technical summary of the root cause and changes made after testing the complete OTP → login → authenticated session flow.
₹20,000 INR in 7 days
0.0
0.0

Having worked extensively in Android development, I'm confident that I can successfully address the issues you're facing with your SMS OTP authentication process. I'm not only skilled in parsing JSON responses but also proficient in handling middleware and ensuring a smooth authentication flow. Moreover, being conversant in MERN Stack and PHP, I understand how backend operations function and can trace any potential migration-related errors. Throughout my career, I have demonstrated an ability to dive deep into code structures to identify potential issues and provide suitable solutions. In this project specifically, my grasp of MSG91 callback structures will be particularly valuable. Additionally, my familiarity with Flutter and Kotlin means that I can bring a more holistic perspective to the task at hand. This allows me to identify any other areas where improvement would enhance the functionality of your app. In my work as a full stack developer, seamless integration is crucial; you can count on me to ensure that all elements of your app interact seamlessly together after the update.
₹25,000 INR in 7 days
0.0
0.0

OTP flow breaking right after verification usually means the SMS part is fine, but the backend is not mapping the verification response into session creation correctly. With MSG91, this often happens when response structure differs from the previous in-app OTP format, so token field is either nested or not being passed to middleware. I would first inspect the exact verification response payload, normalize it in the controller layer, and ensure the token is explicitly extracted before hitting session middleware. Then I’d trace the auth pipeline to confirm the session generator is receiving a valid user identifier + token and not silently failing due to schema mismatch or async handling. I’ve fixed similar OTP migrations where switching providers broke session persistence due to subtle response format changes and missing field mapping. I can quickly isolate the response handling gap and restore the original login flow without touching the OTP provider logic. Thank you Mykola Sagin
₹25,000 INR in 7 days
0.1
0.1

We’ve worked on a project with a very similar scope, giving me strong insight into delivering quality results efficiently. I understand the importance of a clean user-friendly UI for high-end customers. I'm equipped to fix the SMS OTP authentication issue by correctly parsing the JSON response, integrating the token with the session-generation middleware, and restoring a seamless backend authentication flow. Let's discuss your project further for a chance to walk away with a free consultation. Regards, Nabeel Ismail
₹18,750 INR in 7 days
0.0
0.0

✨ Hi, I’m Lewis, and I’ve debugged OTP-based auth flows where the SMS gateway returns a valid code but the backend never hands the parsed JSON token to the session layer, causing logins to silently fail even though verification succeeds. ⚙️ For your MSG91 migration, I’d inspect the OTP verification handler, fix any JSON parsing/field-mapping issues, ensure the success branch correctly passes the token into your session middleware, and add clear logging around the response object so future regressions are easy to spot while keeping the rest of your backend unchanged. ⭐ Could you share the current OTP verification endpoint code (controller/service) plus a sample successful MSG91 response so I can pinpoint exactly where the token is being dropped before wiring it back into a smooth session-creation flow? Thanks for considering my proposal—I’d be happy to get your login working reliably again! ✨
₹20,000 INR in 5 days
0.0
0.0

? Expert Mobile & Web Developer | 14+ Years Experience With over 14 years of experience in Android, iOS, and Website Development, I help businesses, startups, and entrepreneurs turn their ideas into powerful, scalable, and user-friendly digital solutions. I have successfully delivered high-performance mobile apps and modern websites across various industries including e-commerce, fintech, social platforms, and utility apps. ? What I Offer: ✔ Android App Development (Java/Kotlin) ✔ iOS App Development (Swift) ✔ Website Development (PHP, Laravel, WordPress, React) ✔ UI/UX Design (Modern & Responsive) ✔ API Integration & Backend Development ✔ Firebase Integration (Auth, Database, Notifications) ✔ Bug Fixing, Optimization & Maintenance ⭐ Why Choose Me? ✅ 14+ Years Proven Experience ✅ Clean, Scalable & Well-Documented Code ✅ On-Time Delivery & Clear Communication ✅ 100% Client Satisfaction Focus ✅ Long-Term Support & Maintenance ? My Expertise Includes: Custom Mobile Apps (Android & iOS) E-commerce Platforms Admin Panels & Dashboards API Development & Integration Payment Gateway Integration Real-time Apps (Chat, Notifications) ? Let’s Work Together! I am committed to delivering high-quality work that exceeds expectations. Let’s discuss your project and bring your idea to life ?
₹12,500 INR in 7 days
0.0
0.0

i can fix this otp/session-token break today. i will trace the msg91 verification response, normalize the json parsing, confirm the status and token fields are mapped correctly, and pass the token into the existing session-generation middleware so authenticated requests work again. i will also leave clear logging around the failure path and a short note with the exact change. please share repo/api access, one success/failure response sample, and the relevant stack trace.
₹15,000 INR in 1 day
0.0
0.0

Hi, I can help diagnose and fix the OTP authentication flow issue after the MSG91 migration. Based on your description, the issue likely sits in the OTP verification response handling or token mapping layer where the API response is not being correctly parsed or forwarded to the session middleware after successful verification. I can assist with: • Debugging the MSG91 OTP verification response • Fixing JSON parsing and response mapping • Restoring token/session generation flow • Verifying middleware integration and auth lifecycle • Reviewing callback structures, field mappings, and backend logs • Ensuring session persistence across protected endpoints I’m comfortable working with backend auth systems, APIs, JSON handling, and debugging authentication flows across PHP/Java-based environments. The goal will be to restore the exact working login behavior you had before the SMS integration while keeping the MSG91 flow stable and secure. Looking forward to helping you resolve this quickly.
₹37,500 INR in 3 days
0.0
0.0

Your project aligns perfectly with my expertise. I specialize in troubleshooting API responses and integrating seamless user authentication systems. Skills and services I offer include precise JSON parsing, middleware token handling, and backend flow restoration for a professional and efficient user experience. While I am a new freelancer, I have extensive hands-on experience and have completed multiple off-platform projects successfully. Available to start immediately and discuss the next steps. Regards, Armando
₹16,900 INR in 7 days
0.0
0.0

Java Backend Developer with knowledge in Java, PHP, Android, API Development, JSON parsing, and backend debugging. Skilled in handling authentication flows, session management, OTP verification systems, and REST API integration. Familiar with troubleshooting token generation issues, middleware handling, and fixing response mapping errors after third-party service migrations like MSG91. Strong understanding of backend logic, debugging stack traces, and ensuring stable login/session functionality across applications. Able to deliver clean, efficient, and reliable fixes within deadlines.
₹25,000 INR in 7 days
0.0
0.0

Solapur, India
Member since May 25, 2026
₹12500-37500 INR
$2-8 USD / hour
£20-50 GBP
$250-750 USD
$30-250 USD
$10-30 USD
$10-80 USD
$1500-3000 NZD
₹12500-37500 INR
$2500-5000 AUD
₹1500-12500 INR
$25-50 USD / hour
$10-12 USD
₹1500-12500 INR
₹750-1250 INR / hour
$250-750 AUD
₹12500-37500 INR
$30-250 USD
₹750-1250 INR / hour
$10-30 USD
$30-250 USD