code: function getCookieOptions (options) {
    if (options !== true && typeof options !== 'object') {
      return undefined
    }
  
    var opts = Object.create(null)
  
    // defaults
    opts.key = '_csrf'
    opts.path = '/'
  
    if (options && typeof options === 'object') {
      for (var prop in options) {
        var val = options[prop]
  
        if (val !== undefined) {
          opts[prop] = val
        }
      }
    }
  
    return opts
  }
docs: Get options for cookie.
  
  @param {boolean|object} [options]
  @returns {object}
  @api private