@nuxtjs/auth
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -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 @@ } |
@@ -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", |
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
50549
1065