pubg
pubg copied to clipboard
Help getting token
Can someone please help me get a token with the current version?
Just use the steamworks sdk for getting the token.
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);
});
You're on the right way with that, yes.
Thanks. I'll give it another try. I appreciate the reply.
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())
})
});