Jump to content
McKay Development

Jartsu

Member
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Jartsu

  1. Hmm, The confirming doesn't work for me at all :/, What could be the issue (not the same thing what I asked before)

    community.on('confKeyNeeded', function(tag, callback) {
        var time = Math.floor(Date.now() / 1000);
        var key_conf = SteamTotp.getConfirmationKey(config.identity_secret, time, 'conf');
        callback(null, time, key_conf);
    });
    
    community.on('newConfirmation', function(confirmation) {
        logger.info("newConfirmation requested.");
    
        var time_details = Math.floor(Date.now() / 1000);
        var key_details = SteamTotp.getConfirmationKey(config.identity_secret, time_details+t_offset, 'allow');
        confirmation.respond(time_details+t_offset, key_details, true, function(err){
            if (err != null) {logger.error("Unable to confirm offer: "+err); return; }
            logger.info("Trade Accepted with 2FA");
        });
    });
    
  2. Hey,

     

    I'm trying to make an "confirmation system". After trade is sent, you can call it, with trade id, so it would be confirmed. Is there already something like that or not? If it's not possible to do something like that, okay.

     

    If it's not possible (the tradeid confirming, then) -> After logging in I have that line: 

    community.startConfirmationChecker(10000, account.identity_secret);

    But it doesn't seem to work for me.

  3. Hey,


    I'm trying to login to steam, but I keep getting an error "Error: SteamGuardMobile". My time is right, shared secret is right as well, What could be wrong?



    SteamTotp.getTimeOffset(function(err, offset, latency) {
    account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset);
    account.auth = false;
    logger.debug(account);
    community.login(account, login);
    });

×
×
  • Create New...