diff --git a/index.js b/index.js index 7f3f67e..2484898 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,8 @@ async function login (user, password, host = '') { if (res.status !== http_consts.status_ok) return ''; - return await res.text (); + const session_id = await res.text (); + return session_id; }); if (salt_str === '')