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

Callback does not receive sessionTicket parameter in createAuthSessionTicket call #391

Closed
Jadd opened this issue Mar 17, 2022 · 2 comments
Closed
Labels

Comments

@Jadd
Copy link

Jadd commented Mar 17, 2022

The following example outputs null for both err and sessionTicket callback parameters.

g_SteamClient.logOn({accountName: '***************', password: '***************'});

g_SteamClient.on('loggedOn', () => {
  g_SteamClient.createAuthSessionTicket(480, (err, sessionTicket) => { console.log(sessionTicket); });
});

Additionally, a call to getActiveAuthSessionTickets() will indicate that the session ticket was in fact created.

@Jadd Jadd added the bug label Mar 17, 2022
@Jadd
Copy link
Author

Jadd commented Mar 17, 2022

Problem arises from callbackPromise specifying the argument name as appTicket whereas the callback is invoked with the argument key sessionTicket.

return StdLib.Promises.callbackPromise(['appTicket'], callback, (resolve, reject) => {

resolve({sessionTicket: buffer});

Unfortunately I'm unable to submit a pull request at the moment.

Thanks!

@DoctorMcKay
Copy link
Owner

Brought it in line with the documentation.

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

No branches or pull requests

2 participants