@classmethod
def parse_login(cls, res_js):
    """Parse login javascript response."""
    window = cls.exec_js(res_js)
    return {'code': window.code, 'redirect_uri': window.redirect_uri,
        'userAvatar': window.userAvatar}
