diff --git a/src/core/services/AuthenticationOrchestrator.ts b/src/core/services/AuthenticationOrchestrator.ts index e8f38883..2376142f 100644 --- a/src/core/services/AuthenticationOrchestrator.ts +++ b/src/core/services/AuthenticationOrchestrator.ts @@ -369,8 +369,7 @@ export class AuthenticationOrchestrator implements IAuthenticationProvider { headers ); if (!response.ok) throw AuthError.fromResponse(response, json); - // The response is already camelCased by the API, so we can cast it directly. - return json as MfaChallengeResponse; + return deepCamelCase(json); } async revoke(parameters: RevokeOptions): Promise {