Skip to content

Commit

Permalink
fix: handle Steam Guard users in login()
Browse files Browse the repository at this point in the history
Signed-off-by: Elijah Conners <business@elijahpepe.com>
  • Loading branch information
ElijahPepe committed Aug 3, 2022
1 parent 4a92792 commit 1452f5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Expand Up @@ -18,6 +18,9 @@ export class Client {
} catch (err) {
throw new Error('Invalid Steam username or password provided!');
}
steamUser.on('steamGuard', (_domain, callback) => {
console.log(callback);
});
steamUser.on('loggedOn', async () => {
const ticket = await steamUser.getEncryptedAppTicket(1818750, null);
const data = await this.info(ticket.encryptedAppTicket.toString('hex'));
Expand Down

0 comments on commit 1452f5c

Please sign in to comment.