lib/passport-wink/strategy.js
function Strategy(options, verify) {
  options = options || {};
  options.clientID = options.clientID || {};
  options.clientSecret = options.clientSecret || {};
  options.grant_type = "password";
  options.skipUserProfile = true;
  options.authorizationURL = options.authorizationURL || 'https://winkapi.quirky.com/oauth2/token';
  options.tokenURL = options.tokenURL || 'https://winkapi.quirky.com/oauth2/token';
  OAuth2Strategy.call(this, options, verify);
  this.name = 'wink';
}
function Strategy(options, verify) {
  options = options || {};
  options.clientID = options.clientID || {};
  options.clientSecret = options.clientSecret || {};
  options.grant_type = "password";
  options.skipUserProfile = true;
  options.authorizationURL = options.authorizationURL || 'https://winkapi.quirky.com/oauth2/token';
  options.tokenURL = options.tokenURL || 'https://winkapi.quirky.com/oauth2/token';
  OAuth2Strategy.call(this, options, verify);
  this.name = 'wink';
}
`Strategy` constructor.

The wink authentication strategy authenticates requests by delegating to
wink using the OAuth 2.0 protocol.

Applications must supply a `verify` callback which accepts an `accessToken`,
`refreshToken` and service-specific `profile`, and then calls the `done`
callback supplying a `user`, which should be set to `false` if the
credentials are not valid.  If an exception occured, `err` should be set.

Options:
- `clientID`      your wink application's client id
- `clientSecret`  your wink application's client secret
- `callbackURL`   URL to which wink will redirect the user after granting authorization

Examples:

passport.use(new WinkStrategy({
clientID: '123-456-789',
clientSecret: 'shhh-its-a-secret'
callbackURL: 'https://www.example.net/auth/wink/callback'
},
function(accessToken, refreshToken, profile, done) {
self.oauth = results.data;
callback(null);
});
));


Note: for token re-authorization, set options.grant_type = "refresh_token"


@param {Object} options
@param {Function} verify
@api public