Dual OTP-Based Sign-In/Sign-Out

Created by Moveinsync Help, Modified on Mon, 24 Nov at 12:56 AM by Moveinsync Help

Handle Boarding & Deboarding Flow


Overview

The Dual OTP-based Sign-In/Sign-Out mechanism ensures accurate verification of employee boarding and deboarding during trips.

The system generates two distinct OTPs:

  • Boarding OTP – Generated when the driver accepts the trip.

  • Deboarding OTP – Generated after successful boarding confirmation.

OTP Delivery & Visibility

  • Displayed to employees in-app.

  • Delivered via SMS (and email/push notifications when supported).

  • Can be validated by the driver only within the configured geofence radius.


Dependencies

  • ETS Version: 25.06 or above

  • Driver App Version: v6.4.0 or above


Configurations

PMS — Driver App

1. Geofence & Timeout Settings

ConfigMeaning
SIGN_IN_GEO_FENCE_IN_METERS = 300Driver must be within 300m of pickup to allow employee sign-in.
SIGN_OFF_GEO_FENCE_IN_METERS = signOutRestrictionGeofenceInMetresDriver must be within the configured drop geofence radius to allow sign-off.
SIGN_IN_TIMEOUT_IN_MINUTES = 3Sign-in attempt expires after 3 minutes.
SIGN_OFF_TIMEOUT_IN_MINUTES = 3Sign-off attempt expires after 3 minutes.

2. Geofence / Time Restrictions

ConfigMeaning
ENABLE_GEO_FENCE_RESTRICTION_DURING_SIGN_IN = falseSign-in does not depend on geofence.
ENABLE_GEO_FENCE_RESTRICTION_DURING_SIGN_OFF = trueSign-off must follow geofence restriction.
ENABLE_TIME_RESTRICTION_DURING_SIGN_IN = falseNo time restriction for sign-in.
ENABLE_TIME_RESTRICTION_DURING_SIGN_OFF = falseNo time restriction for sign-off.

3. Sync Behavior

ConfigMeaning
FEATURE_MAKE_EMPLOYEE_SIGN_IN_SYNCHRONOUS_WITH_SERVER = trueSign-in is server-validated (synchronous API).
FEATURE_MAKE_EMPLOYEE_SIGN_OFF_SYNCHRONOUS_WITH_SERVER = trueSign-off is server-validated synchronously.
FEATURE_MAKE_DUTY_START_END_SYNCHRONOUS = trueDuty start/end sync immediately with the server.
FEATURE_MAKE_LEG_START_END_SYNCHRONOUS = trueLeg start/end sync immediately with the server.

4. Combined Condition Behavior

ConfigMeaning
SHOULD_REQUIRE_BOTH_GEO_FENCE_AND_TIME_CONDITIONS_FOR_ENABLING_SIGN_IN_OTP_RESTRICTION = falseGeofence OR time is enough for sign-in OTP restriction.
SHOULD_REQUIRE_BOTH_GEO_FENCE_AND_TIME_CONDITIONS_FOR_ENABLING_SIGN_OFF_OTP_RESTRICTION = falseGeofence OR time is enough for sign-off OTP restriction.

5. Feature Flags

ConfigMeaning
FEATURE_EMPLOYEE_PIN_VERIFICATION_ENABLED = trueEmployee PIN verification enabled (required for OTP).

PMS — ETS

1. OTP Direction Control

ConfigMeaning
EMPLOYEE_SIGN_IN_SIGN_OUT_OTP_DIRECTION = "BOTH"OTP required for both sign-in and sign-out.

2. OTP Flow Settings

ConfigMeaning
ENABLE_SIGN_OUT_OTP_POST_SIGN_IN = trueDeboarding OTP generated only after successful sign-in OTP validation.
ENABLE_OTP_BASED_SIGN_IN = trueEnables OTP-based sign-in.
ENABLE_EMPLOYEE_SIGN_IN_SIGN_OUT_OTP = trueMaster flag for enabling employee OTP.

3. OTP Length

ConfigMeaning
EMPLOYEE_OTP_LENGTHOTP length fixed as 4 digits.

✔️ Summary

  • Dual OTP ensures accurate employee boarding & deboarding validation.

  • OTPs displayed in-app and delivered via SMS for reliability.

  • Strict geofence logic ensures validation happens only at the correct location.

  • All operations sync immediately with the server and are fully auditable.

  • PMS–Driver App and PMS–ETS configurations must be aligned for the feature to function.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article