Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/auth

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/auth - npm Package Compare versions

Comparing version 4.6.3 to 4.6.4

9

CHANGELOG.md

@@ -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 @@

10

lib/core/storage.js

@@ -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 @@

2

lib/module/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc