We need to refactor the interactions between Kratos, Login UI frontend and backend. The reason is that Kratos SDK requires application/json content type, but some flows (identifier first, webauthn) are expected to be form-urlencoded. We should unify the request handling.
See reference: #697 (comment)