Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function parse_authorization(authorization) {
return [username, password];
}

function OpenIDConnect(options) {
function OpenIDConnect(options, callback) {
this.settings = extend(true, {}, defaults, options);

//allow removing attributes, by marking thme as null
Expand Down Expand Up @@ -241,7 +241,7 @@ function OpenIDConnect(options) {
connections: this.settings.connections,
app: this.settings.app,
policies: this.settings.policies
});
}, callback);
}
}

Expand Down Expand Up @@ -1170,8 +1170,8 @@ OpenIDConnect.prototype.removetokens = function() {
];
};

exports.oidc = function(options) {
return new OpenIDConnect(options);
exports.oidc = function(options, callback) {
return new OpenIDConnect(options, callback);
};

exports.defaults = function() {
Expand Down