How to use cookie-universal - 2 common examples

To help you get started, we’ve selected a few cookie-universal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Rajan / lesspod / client / vue / prod / server / nuxt / cookie-universal-nuxt.js View on Github external
export default ({ req, res }, inject) => {
  const options = {
    'alias': 'cookies',
    'parseJSON': true
  }
  inject(options.alias, cookieUniversal(req, res, options.parseJSON))
}
github microcipcip / cookie-universal / packages / cookie-universal-nuxt / lib / templates / cookie-universal-nuxt.js View on Github external
export default ({ req, res }, inject) => {
  inject(options.alias, cookieUniversal(req, res))
}

cookie-universal

Universal cookie plugin, perfect for SSR

MIT
Latest version published 2 years ago

Package Health Score

44 / 100
Full package analysis

Popular cookie-universal functions