lib/passport-google-authcode/strategy.js
function GoogleAuthCodeStrategy(options, verify) {
  options = options || {};
  options.authorizationURL = options.authorizationURL || 'https://accounts.google.com/o/oauth2/v2/auth';
  options.tokenURL = options.tokenURL || 'https://www.googleapis.com/oauth2/v4/token';

  this._passReqToCallback = options.passReqToCallback;
  
  OAuth2Strategy.call(this, options, verify);
  this.name = 'google-authcode';
}
function GoogleAuthCodeStrategy(options, verify) {
  options = options || {};
  options.authorizationURL = options.authorizationURL || 'https://accounts.google.com/o/oauth2/v2/auth';
  options.tokenURL = options.tokenURL || 'https://www.googleapis.com/oauth2/v4/token';

  this._passReqToCallback = options.passReqToCallback;
  
  OAuth2Strategy.call(this, options, verify);
  this.name = 'google-authcode';
}
function GoogleAuthCodeStrategy ( options , verify ) { options = options || { } ; options . authorizationURL = options . authorizationURL || 'https://accounts.google.com/o/oauth2/v2/auth' ; options . tokenURL = options . tokenURL || 'https://www.googleapis.com/oauth2/v4/token' ; this . _passReqToCallback = options . passReqToCallback ; OAuth2Strategy . call ( this , options , verify ) ; this . name = 'google-authcode' ; }
`GoogleAuthCodeStrategy` constructor.

The Google authentication strategy authenticates requests by delegating to
Google 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 Google application's client id
- `clientSecret`  your Google application's client secret

Examples:

passport.use(new GoogleAuthCodeStrategy({
clientID: '123-456-789',
clientSecret: 'shhh-its-a-secret'
},
function(accessToken, refreshToken, profile, done) {
User.findOrCreate(..., function (err, user) {
done(err, user);
});
}
));

@param {Object} options
@param {Function} verify
@api public
GoogleAuthCodeStrategy constructor .