iitg-auth

0.0.5 • Public • Published

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.

Package Sidebar

Install

npm i iitg-auth

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • uppinder