pubg icon indicating copy to clipboard operation
pubg copied to clipboard

Help getting token

Open busheezy opened this issue 7 years ago • 5 comments

Can someone please help me get a token with the current version?

busheezy avatar Jan 30 '18 20:01 busheezy

Just use the steamworks sdk for getting the token.

porstendorfer avatar Feb 12 '18 12:02 porstendorfer

I was trying this token before. I assumed this was incorrect but maybe I was using the websocket incorrectly. Is this the right endpoint for the token?

greenworks.getAuthSessionTicket((ticket) => {
  const ticketString = ticket.ticket.toString('hex');
  console.log(ticketString);
}, function (err) {
  console.log(err);
});

busheezy avatar Feb 12 '18 21:02 busheezy

You're on the right way with that, yes.

porstendorfer avatar Feb 12 '18 21:02 porstendorfer

Thanks. I'll give it another try. I appreciate the reply.

busheezy avatar Feb 12 '18 21:02 busheezy

For now, you can easily use node-steam-user to get the ticket without running a real steam client. e.g.

const SteamUser = require('steam-user');

let client = new SteamUser();

client.logOn({
    "accountName": "xxxxxx",
    "password": "xxxxxx"
});

client.on('loggedOn', function(details) {
    console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID());
    client.setPersona(SteamUser.EPersonaState.Online);
    client.gamesPlayed(578080, true);
    client.getAuthSessionTicket(578080, function (err, ticket) {
        console.log(ticket.toString('hex').toUpperCase())
    })
});

micheal-death avatar Mar 05 '18 05:03 micheal-death