You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): make request-code handler resilient to body param types
Refactors the parsing of the `isDashboardLogin` parameter in the
`/api/v1/auth/request-code` route handler.
Previously, the handler would crash with a type cast error if the
`isDashboardLogin` value was sent as a string (e.g., `"true"`) instead
of a boolean.
This change introduces robust parsing that correctly handles values
that are boolean `true`, the string `"true"`, or missing, preventing
the 500 Internal Server Error and making the endpoint more resilient
to varied client implementations.
0 commit comments