index.js
function Plugin(server) {
    this.server = server;
    this.config = server.config;
    //Check if we have the right config
    this.checkConfiguration();
    this.settings = this.config.githubAuth;
    //Init if not present
    if (typeof this.server.passport === "undefined")
        this.initGithubAuth();
    else
        this.passport = this.server.passport;
}
function Plugin(server) {
    this.server = server;
    this.config = server.config;
    //Check if we have the right config
    this.checkConfiguration();
    this.settings = this.config.githubAuth;
    //Init if not present
    if (typeof this.server.passport === "undefined")
        this.initGithubAuth();
    else
        this.passport = this.server.passport;
}
function Plugin ( server ) { this . server = server ; this . config = server . config ; //Check if we have the right config this . checkConfiguration ( ) ; this . settings = this . config . githubAuth ; //Init if not present if ( typeof this . server . passport === "undefined" ) this . initGithubAuth ( ) ; else this . passport = this . server . passport ; }
Plugin initialization logic
@param Object server
@param Object testConfig - optional - configuration settings for testing purposes
Plugin initialization logic