@websanova/vue-auth
Advanced tools
Comparing version 2.21.6-beta to 2.21.7-beta
{ | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.21.6-beta" | ||
"@websanova/vue-auth": "2.21.7-beta" | ||
}, | ||
@@ -5,0 +5,0 @@ |
{ | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.21.6-beta", | ||
"@websanova/vue-auth": "2.21.7-beta", | ||
"axios": "0.16.2", | ||
@@ -5,0 +5,0 @@ "vue-axios": "2.0.2" |
{ | ||
"dependencies": { | ||
"nuxt": "1.0.0-rc3", | ||
"@websanova/vue-auth": "2.21.6-beta", | ||
"@websanova/vue-auth": "2.21.7-beta", | ||
"vue-resource": "1.3.4", | ||
@@ -6,0 +6,0 @@ "axios": "0.16.2", |
@@ -47,3 +47,3 @@ { | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.21.6-beta", | ||
"@websanova/vue-auth": "2.21.7-beta", | ||
"axios": "^0.16.2", | ||
@@ -50,0 +50,0 @@ "compression": "^1.6.2", |
@@ -35,1 +35,29 @@ # FAQ | ||
Note that `vue-auth` simply forwards all the arguments into whatever http plugin/module you are using. So for `vue-axios` it will be a `data` parameter and for `vue-resource` it's a `body` parameter. | ||
## Manually Setting User | ||
Sometimes you may need to set your own user manually via some other method, perhaps from some token. | ||
~~~ | ||
Vue.use(VueAuth, { | ||
... | ||
loginData: { | ||
fetchUser: false | ||
}, | ||
fetchData: { | ||
enabled: false, | ||
success: function () { | ||
var token = Vue.auth.token(); | ||
Vue.auth.user(/* user object */); | ||
} | ||
}, | ||
... | ||
}); | ||
~~~ |
@@ -17,3 +17,3 @@ { | ||
"version": "2.21.6-beta", | ||
"version": "2.21.7-beta", | ||
@@ -20,0 +20,0 @@ "repository": { |
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
768227