Jump to content
McKay Development

lupucl

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by lupucl

  1. Up. I'm looking for something like this:
     

                        var steamguard = user.on('steamGuard', function(callback) {
     
                        });
                        if(steamguard){
                            console.log("Steamguard needed!");
                        }else{
                            console.log("log in without steamguard")
                        }
  2. Sorry, I was in a rush.

    Basically, what I did is, checking the user and password from HTML input.

    What I want now, is to do the same with Steam Guard. Is there any way to do that?

    And, one more thing? The "Steam Guard App" message from console, can be changeable? Because I couldn't find anything on github.

     

    Edit// I've come with a better idea. How can I read the steamguard from a file?

    Edit2// Is there any way to logOff a specific user? Like, logOff and steam username?

    Thanks.

  3. Hi, is there any way to add in client.logOn something like steamGuard?

    I would like to take the steamguard from an input.

     

    
    const SteamUser = require("steam-user");
    
    app.post('/account', function(req, res) {
        const SteamUsername = req.body.SteamUsername;
        const SteamPassword = req.body.SteamPassword;
        const title = "test";
        const games = 720;
    
        // Authorization
        const client = new SteamUser();
    
        client.logOn({
            accountName: SteamUsername,
            password: SteamPassword
        });
        client.on("loggedOn", async () => {
            await Array.prototype.push.apply(
                title,
                games
            );
    
            await client.setPersona(
                SteamUser.EPersonaState.Online
            );
    
            await client.gamesPlayed(
                title
            );
    
            console.log(`Logged succesfully as ${SteamUsername}.`);
        });
    });

     

×
×
  • Create New...