Better decoding of the GET /login response
Better decoding of the response from GET /login when there are both UIA and non-UIA auth flows.
Rather than attempting to hack together some generic parent type that encapsulates both UIA flows and non-UIA flows, I just created a special decoder for the response body type. It uses the LossyDecodableList
that we use for handling /sync
. Any flows that decode as valid UIA flows go into one var, and any flows that decode as valid standard/legacy Matrix flows go into a different var. Easy peasy.
This fixes circles-ios/290