How to use the passport-strategy.Strategy.call function in passport-strategy

To help you get started, we’ve selected a few passport-strategy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andrewda / passport-securelogin / lib / strategy.js View on Github external
function SLStrategy(options, validate) {
    if (typeof options === 'function') {
        validate = options;

        options = {};
    }

    options = options || {};

    Strategy.call(this);

    this.name = 'securelogin';
    this._passReqToCallback = options.passReqToCallback;
    this._verify = validate;
}

passport-strategy

An abstract class implementing Passport's strategy API.

MIT
Latest version published 11 years ago

Package Health Score

67 / 100
Full package analysis