Skip to content
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

Open
busheezy opened this issue Jan 30, 2018 · 5 comments
Open

Help getting token #10

busheezy opened this issue Jan 30, 2018 · 5 comments

Comments

@busheezy
Copy link

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

@porstendorfer
Copy link

Just use the steamworks sdk for getting the token.

@busheezy
Copy link
Author

busheezy commented Feb 12, 2018

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);
});

@porstendorfer
Copy link

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

@busheezy
Copy link
Author

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

@micheal-death
Copy link

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())
    })
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants