AID-599: Refactor current xhr login
AID-599: New endpoint for redirect login flow