Running authenticate returns an error after the first login attempt, even when it succeeds
When running an API request against AUTHENTICATE, it returns an error in the json after the first request, even when the request succeeds. See the following:
simonft@goldman ~> curl 'http://localhost:7070/API/bonafide/user/authenticate' -H 'X-Bitmask-Auth: 927d74e7e6d54ec097013eefa2f67210' --data-binary '["simonft-nylas-test@mail.bitmask.net","${PASSWORD}",true]' --compressed
{"result": {"srp_token": "<removed>", "uuid": "<removed>"}, "error": null}⏎
simonft@goldman ~> curl 'http://localhost:7070/API/bonafide/user/authenticate' -H 'X-Bitmask-Auth: 927d74e7e6d54ec097013eefa2f67210' --data-binary '["simonft-nylas-test@mail.bitmask.net","${PASSWORD}",true]' --compressed
{"result": null, "error": ""}⏎
The first request succeeds. at which point the account is logged in. The second request fails. This might be reasonable, since the account is already logged in, though in that case the error message should be more clear and it should not return 200. However, if I then log out and run the request again, I still get the same error.
simonft@goldman ~> curl 'http://localhost:7070/API/bonafide/user/authenticate' -H 'X-Bitmask-Auth: 927d74e7e6d54ec097013eefa2f67210' --data-binary '["simonft-nylas-test@mail.bitmask.net","${PASSWORD}",true]' --compressed
{"result": null, "error": ""}⏎
However, the account is in fact logged in after this.