Skip to content

A nodejs package to fetch steam guard token from emails (using IMAP).

Notifications You must be signed in to change notification settings

Mijago/node-steam-email-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-steam-email-auth

This is a nodejs package for steam email auth. It uses IMAP to fetch the latest emails and gives you the last key it could get.

Installation

It is as easy as always:

npm install steam-email-auth

Example Usage

var auth = new SteamEmailAuth({
    user: '[email protected]',
    password: "gmailpass",
    host: 'imap.gmail.com',
    port: 993,
    tls: true
});

auth.fetchLastAuthCode({}, function (key) {
    console.log("Key: "+ key)
});

If you use the email for multiple accounts, you should prefer this call:

auth.fetchLastAuthCode({
    username: "username here!"
}, function (key) {
    console.log("Key: "+ key)
});

Methods

fetchLastAuthCode(options, callback)

Creates a new IMAP connection and returns the guard key it has found.

  • options - an object representing the configuration. Can be {}.
    • username (optional) - The username (login) whick key we are searching. Use this if you have multiple steam accounts on this email.
    • type (optional) - "web", "computer" or nothing. To filter what type of auth you need (web is also mobile).
  • callback(key) - a function, getting the guard key as first argument.
    • key - The guard key. NULL if none has been found.

About

A nodejs package to fetch steam guard token from emails (using IMAP).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published