code: function Strategy(options, verify) {
    if (typeof options === "function") {
      verify = options;
      options = {};
    }
  
    if (!verify) {
      throw new TypeError("CookieStrategy requires a verify callback");
    }
  
    passport.Strategy.call(this);
    this.name = "cookie";
    this._cookieName = options.cookieName || "token";
    this._signed = options.signed || false;
    this._verify = verify;
    this._passReqToCallback = options.passReqToCallback;
  }
docs: Creates an instance of `Strategy`.
  
  Options:
  
  - `cookieName`  Cookie name (defaults to "token")
  - `signed` Are the cookie signed? (defaults to false)
  - `passReqToCallback`  when `true`, `req` is the first argument to the verify callback (default: `false`)
  
  Examples:
  
  passport.use(new CookieStrategy(
  function(token, done) {
  User.findByToken({ token: token }, function(err, user) {
  if (err) { return done(err); }
  if (!user) { return done(null, false); }
  return done(null, user);
  });
  }
  ));
  
  @constructor
  @param {Object} [options]
  @param {Function} verify
  @api public