Skip to content

Commit e12066b

Browse files
fix: apply deepCamelCase to MFA challenge response (#1510)
Co-authored-by: Subhankar Maiti <35273200+subhankarmaiti@users.noreply.github.com>
1 parent 98fdf98 commit e12066b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/services/AuthenticationOrchestrator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ export class AuthenticationOrchestrator implements IAuthenticationProvider {
369369
headers
370370
);
371371
if (!response.ok) throw AuthError.fromResponse(response, json);
372-
// The response is already camelCased by the API, so we can cast it directly.
373-
return json as MfaChallengeResponse;
372+
return deepCamelCase<MfaChallengeResponse>(json);
374373
}
375374

376375
async revoke(parameters: RevokeOptions): Promise<void> {

0 commit comments

Comments
 (0)