You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
[**WARNING**]: README file is currently in process of rewrite and will be released soon.
2
+
1
3
# vue-authenticate
2
4
3
5
[](https://gitter.im/vuejs-auth/vue-authenticate?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -10,7 +12,7 @@ The best part about this library is that it is not strictly coupled to one reque
10
12
11
13
For now it is tested to work with [vue-resource](https://github.com/pagekit/vue-resource) and [axios](https://github.com/mzabriskie/axios) (using [vue-axios](https://github.com/imcvampire/vue-axios) wrapper).
12
14
13
-
**WARNING** From version 1.3.0 default request library is `axios` using `vue-axios` wrapper plugin.
15
+
**WARNING:** From version 1.3.0 default request library is `axios` using `vue-axios` wrapper plugin.
14
16
15
17
This library was inspired by well known authentication library for Angular called [Satellizer](https://github.com/sahat/satellizer) developed by [Sahat Yalkabov](http://sahatyalkabov.com). They share almost identical configuration and API so you can easily switch from Angular to Vue.js project.
16
18
@@ -33,10 +35,11 @@ npm install vue-authenticate
33
35
## Usage
34
36
```javascript
35
37
importVuefrom'vue'
36
-
importVueResourcefrom'vue-resource'
38
+
importVueAxiosfrom'vue-axios'
37
39
importVueAuthenticatefrom'vue-authenticate'
40
+
importaxiosfrom'axios';
38
41
39
-
Vue.use(VueResource)
42
+
Vue.use(VueAxios, axios)
40
43
Vue.use(VueAuthenticate, {
41
44
baseUrl:'http://localhost:3000', // Your API domain
0 commit comments