1. Devin Martin
  2. Authy.net
  3. Issues
Issue #2 new

Use more robust JSON parsing rather than regex and string matching

Devin Martin
repo owner created an issue

The current implementation works, but is quite brittle. Replace the current string.Contains and Regex.Match calls with full JSON parsing. In most cases the production API seems to use the fields passed into the API as field names in the response object when there is a problem so it should be a bit more robust to look for specific fields on the response JSON object, rather than match specific text.

Comments (0)

  1. Log in to comment