Closed blt950 closed 1 year ago
This seems to be something from VATSIM Connect instead, we'll keep this open until Invision fixes this issue on their side.
Invision still haven't fixed it, probably never going to either in this speed.
Closing this as it's not really a Handover issue, and Invision need to get their shit together anyway (they still haven't).
Issue is that our user data endpoint sends the HTML login form when the access_token is invalid, where it should return JSON (e.g. status=403 {"message": "unauthorized"}) that can be parsed into an array.
I believe we need to check if the agent is an API that needs JSON response or a user that needs the front-end rendered if it's the one in LoginController causing this.
Could be also that this is correct return, as we're relaying VATSIM Connect data?