Jump to content
McKay Development

Search the Community

Showing results for tags 'steam-user'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

Found 7 results

  1. Hello! I've been trying to log in with loginkey but it always says InvalidPassword. My code works like this: 1. Download steamusername and loginkey from database. 2. Check if they are not null. 3. a) If they are not null, log in with them. 3. b) If they are null, ask for password. Every time the 'loginkey' event gets called, I save the loginkey to the database. Logging in with the password works, but when I try to log in with the loginkey from the database, I get the error InvalidPassword. What am I doing wrong? My code: /* login without loginkey */ client.logOn({ accountName: steamusername, password: steampassword, machineName: "***", rememberPassword: true }); /* saving the loginkey */ client.on("loginKey", key => { saveLoginKey(username, steamusername, key); }); /* login with loginkey */ client.logOn({ accountName: steamusername, loginKey: loginkey, rememberPassword: true, machineName: "***" }); The loginkey variable is set, I checked it. (I'm sorry for any misspelled words or grammar mistakes, english is not my native language) NodeJS version 12.9.1 npm version 6.12.1 steam-user version 4.12.4
  2. const SteamUser = require('steam-user');const SteamTotp = require('steam-totp');const SteamCommunity = require('steamcommunity');const TradeOfferManager = require('steam-tradeoffer-manager'); const client = new SteamUser();const community = new SteamCommunity();const manager = new TradeOfferManager({ steam: client, community: community, language: 'en'}); const logInOptions = { accountName: "........", password: "...........", twoFactorCode: SteamTotp.generateAuthCode("............")}; client.logOn(logInOptions); client.on('loggedOn', () => { console.log('logged on');client.setPersona(SteamUser.EPersonaState.Online, "bot1");client.gamesPlayed(570);});client.on('webSession', (sid, cookies) => {console.log(cookies); manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, "............"); mytrade();}); manager.on('newOffer', offer => { console.log('offer detected'); if (offer.partner.getSteamID64() === '.............') { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(status); } }) } else { console.log('unknown sender'); offer.decline(err => { if (err) { console.log(err); } else { console.log('trade from stranger declined'); } }); }}); function mytrade() {manager.getOfferToken((err, token) => {if (err) {console.log("gsfgfasy", err)}else {var partner="id........"const offer = manager.createOffer('id.....',token);manager.getUserInventoryContents(partner,570, 2, true, (err, myInv) => {if (err) {console.log(err);} else {console.log("myenv",myInv[0]);// myInv.forEach(function(item) {offer.addTheirItem(myInv[0]);offer.setMessage('You received a floral shirt!');offer.send((err, status) => {if (err) {console.log(err);} else {console.log('trade sent');console.log(status);}}) // })}}) }})}
  3. How can I get an item image or even 3d model of an item? Examples:https://s.cs.money/Zw7kaxs.jpg
  4. Hi guys im creator Steam Smart Bot probably first Smart bot on steam check http://steamcommunity.com/profiles/76561198428565112/
  5. I need like a help section on node-steam-tradeoffer-manager,steam-community, steam-totp, and steam-user on where the commands are. Like where should I know where are the command help page. I seem to can't find one in general. I'll really appreciate if someone shows me a link on where it is. Thank you
  6. Hi everyone, have this nodejs backend which is calling the Steam api via passport-steam to log a user in. This is working and in this code I am getting the user back. app.get( //regex to validate auth/steam/ and auth/steam/return /^\/auth\/steam(\/return)?$/, passport.authenticate('steam', { failureRedirect: '/' }), (req, res) => { console.dir(req.user); res.redirect('/account'); } );So I have user as req.user in the callback after the Steam Login passes. My question is: What is the best (AND MOST SECURE!) way to pass this req.user to a route, which I will then call GET from the Frontend Framework so I can get this data to the Frontend? Furthermore, how does my Frontend communicate with my nodejs bot in a secure manner? (maybe this is a broad question but worht a try!) Right now I have this route set up: app.get('/account', (req, res) => { res.send({user: req.user}); });But user is null. Any help is appreciated!
  7. To setup Steam Authentication in steam-user, We have several option like non-steam-guard, steam-guard and totp (and possible more case?) I have few question about: 1. Steam Guard store sentry file, but does it have expiration date? 2. TOTP have certain two way, which one is generate and other is use loginKey. What equivalence information as in SteamKit or in Steam, how they named different methodology? Sorry for that simple question, some high level security issue is best to discuss as easier to encourage open and trust in internet.
×
×
  • Create New...