Skip to content

VSN-2933/ feat/fix: auto logout on and fix change password flow

fatima senan a demandé de fusionner feature/VSN-2933 vers develop

This mr includes the following changes :

  • Implement automatic logout when the server returns a 401 Unauthorized from any part of the app (axios, vehicle inspection service, location tracking).
  • Add X-Client-Type: vsn-driver header to all outgoing requests and re-fetch the driver profile when the app returns to foreground.
  • Fix a display bug on the forgot password screen: after an incomplete reset attempt, the app was auto-jumping to the OTP step on mount, hiding the email and password fields entirely.
  • Fix the change password function which was still a dev mock (checking old password against hardcoded "password123")
  • Enable the change password option in profile settings

Rapports de requête de fusion