How to use the Strategy function from passport-strategy

Find comprehensive JavaScript passport-strategy.Strategy code examples handpicked from public code repositorys.

82
83
84
85
86
87
88
89
90
91
if (!options.authorizationURL) { throw new TypeError('OAuth2Strategy requires a authorizationURL option'); }
if (!options.tokenURL) { throw new TypeError('OAuth2Strategy requires a tokenURL option'); }
if (!options.clientID) { throw new TypeError('OAuth2Strategy requires a clientID option'); }
if (!options.clientSecret) { throw new TypeError('OAuth2Strategy requires a clientSecret option'); }

passport.Strategy.call(this);
this.name = 'oauth2';
this._verify = verify;

// NOTE: The _oauth2 property is considered "protected".  Subclasses are
fork icon1
star icon3
watch icon3

+ 3 other calls in file