@websanova/vue-auth
Advanced tools
Comparing version 2.6.1-beta to 2.7.0-beta
@@ -17,3 +17,3 @@ { | ||
"version": "2.6.1-beta", | ||
"version": "2.7.0-beta", | ||
@@ -28,3 +28,5 @@ "repository": { | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.6.1-beta" | ||
"axios": "0.15.3", | ||
"vue-axios": "1.2.2", | ||
"@websanova/vue-auth": "2.7.0-beta" | ||
}, | ||
@@ -31,0 +33,0 @@ |
@@ -64,4 +64,25 @@ # Vue Auth | ||
### Install with Vue-Axios | ||
~~~ | ||
import axios from 'axios' | ||
import VueAxios from 'vue-axios' | ||
import VueAuth from '@websanova/vue-auth' | ||
Vue.use(VueAxios, axios) | ||
Vue.use(VueAuth, { | ||
auth: AuthBearer, | ||
http: require('@websanova/vue-auth/drivers/http/axios.js'), | ||
router: require('@websanova/vue-auth/drivers/router/vue-router.2.x.js') | ||
... | ||
}); | ||
// access axios with Vue or use the 'this' reference in components | ||
Vue.axios.post(...).then(res => { | ||
console.log('RES', res); | ||
}); | ||
~~~ | ||
## Install 1.x | ||
@@ -68,0 +89,0 @@ |
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
370352
69
2693
915
3
+ Addedaxios@0.15.3
+ Addedvue-axios@1.2.2
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/parser@7.26.3(transitive)
+ Added@babel/types@7.26.3(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@vue/compiler-core@3.5.13(transitive)
+ Added@vue/compiler-dom@3.5.13(transitive)
+ Added@vue/compiler-sfc@3.5.13(transitive)
+ Added@vue/compiler-ssr@3.5.13(transitive)
+ Added@vue/reactivity@3.5.13(transitive)
+ Added@vue/runtime-core@3.5.13(transitive)
+ Added@vue/runtime-dom@3.5.13(transitive)
+ Added@vue/server-renderer@3.5.13(transitive)
+ Added@vue/shared@3.5.13(transitive)
+ Addedaxios@0.15.3(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedestree-walker@2.0.2(transitive)
+ Addedfollow-redirects@1.0.0(transitive)
+ Addedmagic-string@0.30.17(transitive)
+ Addedms@2.0.0(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedvue@3.5.13(transitive)
+ Addedvue-axios@1.2.2(transitive)