@nuxtjs/auth
Advanced tools
Comparing version 4.6.3 to 4.6.4
@@ -5,2 +5,11 @@ # Changelog | ||
### [4.6.4](https://github.com/nuxt-community/auth-module/compare/v4.6.3...v4.6.4) (2019-06-03) | ||
### Bug Fixes | ||
* server side Set-Cookie always set an array. ([#367](https://github.com/nuxt-community/auth-module/issues/367)) ([4d3feff](https://github.com/nuxt-community/auth-module/commit/4d3feff)) | ||
### [4.6.3](https://github.com/nuxt-community/auth-module/compare/v4.6.1...v4.6.3) (2019-05-31) | ||
@@ -7,0 +16,0 @@ |
@@ -229,10 +229,4 @@ import Vue from 'vue' | ||
// Send Set-Cookie header from server side | ||
const prev = this.ctx.res.getHeader('Set-Cookie') | ||
let value = serializedCookie | ||
if (prev) { | ||
value = Array.isArray(prev) | ||
? prev.concat(serializedCookie) | ||
: [prev, serializedCookie] | ||
} | ||
this.ctx.res.setHeader('Set-Cookie', value) | ||
const prevCookies = this.ctx.res.getHeader('Set-Cookie') | ||
this.ctx.res.setHeader('Set-Cookie', [].concat(prevCookies, serializeCookie)) | ||
} | ||
@@ -239,0 +233,0 @@ |
@@ -32,3 +32,3 @@ const { resolve, join, basename } = require('path') | ||
logger.warn('no strategy defined!') | ||
} else if(strategyNames.indexOf(options.defaultStrategy) === -1) { | ||
} else if (strategyNames.indexOf(options.defaultStrategy) === -1) { | ||
logger.warn(`strategy ${options.defaultStrategy} is not defined!`) | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "@nuxtjs/auth", | ||
"version": "4.6.3", | ||
"version": "4.6.4", | ||
"description": "Authentication module for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64913
1236