Commit cfac8e1
committed
fix: apply deepCamelCase to MFA challenge response for correct oob_code mapping
The /mfa/challenge endpoint returns snake_case keys (oob_code, challenge_type,
binding_method) but multifactorChallenge() was casting the raw response directly
to MfaChallengeResponse without conversion. This caused oobCode to be undefined
while the actual data was on the oob_code key.
Apply deepCamelCase() to the response, consistent with all other API methods
in the orchestrator (userInfo, createUser, etc.).1 parent 1440ef8 commit cfac8e1
2 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
| 372 | + | |
374 | 373 | | |
375 | 374 | | |
376 | 375 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
630 | | - | |
| 629 | + | |
| 630 | + | |
631 | 631 | | |
632 | | - | |
| 632 | + | |
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| |||
0 commit comments