@websanova/vue-auth
Advanced tools
Comparing version 2.5.1-beta to 2.6.0-beta
@@ -17,3 +17,3 @@ { | ||
"version": "2.5.1-beta", | ||
"version": "2.6.0-beta", | ||
@@ -28,3 +28,3 @@ "repository": { | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.5.1-beta" | ||
"@websanova/vue-auth": "2.6.0-beta" | ||
}, | ||
@@ -31,0 +31,0 @@ |
@@ -727,7 +727,7 @@ # Vue Auth | ||
### fetchData: `{url: 'auth/user', method: 'GET'}` | ||
### fetchData: `{url: 'auth/user', method: 'GET', enabled: true}` | ||
* Default user fetch request data and redirect. | ||
### refreshData: `{url: 'auth/refresh', method: 'GET', atInit: true}` | ||
### refreshData: `{url: 'auth/refresh', method: 'GET', enabled: true}` | ||
@@ -804,2 +804,10 @@ * Default refresh request data and redirect. | ||
### v2.6.x-beta | ||
* Add enabled option for `fetchData` useful in case we need a preset before auth. For instance when fetching properties from server. | ||
### v2.5.x-beta | ||
* Update default webpack setup to use Vue 2.x. | ||
### v2.4.x-beta | ||
@@ -806,0 +814,0 @@ |
@@ -58,3 +58,5 @@ var __utils = require('./lib/utils.js'), | ||
this.watch.authenticated = false | ||
this.options.fetchPerform.call(this, {success: cb, error: cb}); | ||
if (this.options.fetchData.enabled) { | ||
this.options.fetchPerform.call(this, {success: cb, error: cb}); | ||
} | ||
} else { | ||
@@ -361,3 +363,3 @@ this.watch.loaded = true; | ||
oauth1Data: {url: 'auth/login', method: 'POST'}, | ||
fetchData: {url: 'auth/user', method: 'GET'}, | ||
fetchData: {url: 'auth/user', method: 'GET', enabled: true}, | ||
refreshData: {url: 'auth/refresh', method: 'GET', enabled: true}, | ||
@@ -364,0 +366,0 @@ loginOtherData: {url: 'auth/login-other', method: 'POST', redirect: '/'}, |
Sorry, the diff of this file is not supported yet
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
391811
3297
893