Skip to content

MOB-2157 Fix for emailOTPAuthentication key mismatch in Android#7

Merged
shachartransmit merged 4 commits intomainfrom
feature/MOB-2157
Dec 26, 2025
Merged

MOB-2157 Fix for emailOTPAuthentication key mismatch in Android#7
shachartransmit merged 4 commits intomainfrom
feature/MOB-2157

Conversation

@shachartransmit
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a key mismatch issue for email OTP authentication in the Android implementation. The Android native module was not properly mapping the journey step ID Transmit_platform_email_otp_authentication to the expected emailOTPAuthentication action type, preventing the feature from working correctly on Android devices.

Key Changes:

  • Added Android mapping for the Transmit_platform_email_otp_authentication journey step to emailOTPAuthentication
  • Implemented email OTP authentication handler with a new EmailOTPDialog component
  • Updated example journey ID configuration

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
android/src/main/java/com/tsidentityorchestration/TsIdentityOrchestrationModule.kt Adds mapping for Android to convert platform-specific email OTP step ID to the expected action type
example/src/app/services/ido-service.ts Implements email OTP authentication handler with dialog screen presentation
example/src/app/ido/screens/EmailOTPDialog.tsx New React Native component providing UI for email OTP code entry
example/src/app/config.ts Updates example journey ID to test the email OTP authentication flow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

value={otp}
onChangeText={setOtp}
keyboardType="number-pad"
maxLength={6}
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 6-digit code length is hardcoded in multiple places (placeholder text on line 51 and maxLength here). Consider extracting this as a constant at the component level for easier maintenance if the OTP length requirements change.

Copilot uses AI. Check for mistakes.
@shachartransmit
Copy link
Collaborator Author

Merging content to main.

@shachartransmit shachartransmit merged commit c9aab14 into main Dec 26, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant