Transform login HTTP response to useful structure