tommi Posted January 18 Report Posted January 18 (edited) Hi, just trying to learn how to use steam-user. Can't seem to get it rolling at all. The username/password is 100% correct, I've tried the exact same credentials in browser manually and it works fine. Is it an issue with how I'm handling the email code? Why would it say invalid password if that was the case? Have tried to find basic examples online using email code but can't find anything. EDIT: This is really confusing. I've tried using steam desktop authenticator on the account and it also says password is invalid. I'm literally using the exact same password from clipboard to login to browser and it works a treat. EDIT 2: I have fixed it. My old password "22222222222222222222222222222222222222222hade23s1234@mail.com4445555576$$$$" was being treated as invalid! Not sure why? That's really interesting. Figured I'll leave post up in-case people run into the same issue... const SteamUser = require('steam-user'); const readline = require('readline'); const client = new SteamUser(); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); const logOnOptions = { accountName: 'user', password: 'pass' }; client.logOn(logOnOptions); client.on('steamGuard', function(domain, callback) { if (domain) { console.log(`Steam Guard code needed. Please check your email at ${domain}`); rl.question('Enter your Steam Guard code: ', (code) => { callback(code); }); } else { console.log('Mobile authentication required'); rl.close(); } }); client.on('loggedOn', () => { console.log('Successfully logged into Steam'); rl.close(); }); client.on('error', (err) => { console.error('Error:', err); rl.close(); }); Edited January 18 by tommi Update Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.