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.2.0 to 4.2.1

11

CHANGELOG.md

@@ -5,2 +5,13 @@ # Change Log

<a name="4.2.1"></a>
## [4.2.1](https://github.com/nuxt-community/auth-module/compare/v4.2.0...v4.2.1) (2018-04-27)
### Bug Fixes
* storage cookie get on client side ([#153](https://github.com/nuxt-community/auth-module/issues/153)) ([8275e60](https://github.com/nuxt-community/auth-module/commit/8275e60))
* **watch loggedIn:** disable redirect on direct page loads ([#158](https://github.com/nuxt-community/auth-module/issues/158)) ([0386eb9](https://github.com/nuxt-community/auth-module/commit/0386eb9))
<a name="4.2.0"></a>

@@ -7,0 +18,0 @@ # [4.2.0](https://github.com/nuxt-community/auth-module/compare/v4.1.0...v4.2.0) (2018-04-20)

@@ -30,2 +30,7 @@ import getProp from 'dotprop'

if (!routeOption(this.ctx.route, 'auth', false)) {
//disable redirect on refresh / direct load of a page.
if(loggedIn && !this.ctx.from) {
return
}
this.redirect(loggedIn ? 'home' : 'logout')

@@ -32,0 +37,0 @@ }

2

lib/core/storage.js

@@ -186,3 +186,3 @@ import Vue from 'vue'

getCookie (key, isJson) {
if (!this.options.cookie || !this.ctx.req) {
if (!this.options.cookie || (process.server && !this.ctx.req)) {
return

@@ -189,0 +189,0 @@ }

{
"name": "@nuxtjs/auth",
"version": "4.2.0",
"version": "4.2.1",
"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