0.0.5 • Published 7 years ago

iitg-auth v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

iitg-auth

npm version

A wrapper library for authenticating with IIT Guwahati webmail servers.

Installation

$ npm install iitg-auth

Usage

Authentication

var iitgAuth = require('iitg-auth');
....

// Store user details in an object
var userDetails = {
  username : username, // Without @iitg.ernet.in
  password : password,
  mailServer: mailServer // Among 'teesta', 'disang', 'naambor', 'tamdil', 'dikrong'
};

/** err is null if succesfull login
*   otherwise an object containing a
*   specific error message
*/
iitgAuth(userDetails, function(err) {
  if(err)
    // Login unsuccesfull!
  else
    // User details are authenticate.
    
    // Other code
}); 


...

Tests

WIP

License

The MIT License (MIT). Please see License File for more information.

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago