Jump to content
McKay Development

Ryu

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Ryu

  1. Hi

    I receive the error "invalidParam" after: await this._handler.startSessionWithCredentials;

    All the credentials are correct, I've ran the code for a long time with no problems but today this is happening, with no changes.

     

    Thank you,

    Ryu
     

  2. #Logged into Steam
    #Error not logged in

    I'm trying to log into the bot with username, password and 2fa manually, save the refreshToken and cookies, and reuse them anytime I restart the bot.

    client.logOn({"refreshToken": refreshToken });
    
    client.on('loggedOn', async (details) => {
      console.log("Logged into Steam");
    
      let manager = new TradeOfferManager({
        "steam": client, 
        "domain": "example.com", 
        "language": "en" 
      });
    
      manager.setCookies(cookies, (err) => {
        manager.getInventoryContents(730, 2, true, (err, inventory) => {
          if (err) {
            console.log(err);
            return;
          }
      
          if (inventory.length == 0) {
            // Inventory empty
            console.log("CS:GO inventory is empty");
            return;
          }
      
          console.log("Found " + inventory.length + " CS:GO items");
        })
      
      })
    
    });

     

  3. Quote
    import SteamUser from 'steam-user';
    import {LoginSession, EAuthTokenPlatformType} from 'steam-session';
    let client = new SteamUser();
    let session = new LoginSession(EAuthTokenPlatformType.WebBrowser);
    const loginDetails = {
      accountName: "name",
      password: "pass",
      steamGuardCode: "2fa"
    }
    await session.startWithCredentials(loginDetails); 
    session.on('authenticated', async () => {
      const logOnOptions = {
        "refreshToken": session.refreshToken
      };
      client.logOn(logOnOptions);
      client.on('loggedOn', (details) => {
        console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID());
      });
    });

    What am I doing wrong

×
×
  • Create New...