-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help getting token #10
Comments
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. 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())
})
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can someone please help me get a token with the current version?
The text was updated successfully, but these errors were encountered: