@websanova/vue-auth
Advanced tools
Comparing version 2.14.1-beta to 2.14.2-beta
{ | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.14.1-beta" | ||
"@websanova/vue-auth": "2.14.2-beta" | ||
}, | ||
@@ -5,0 +5,0 @@ |
{ | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.14.1-beta", | ||
"@websanova/vue-auth": "2.14.2-beta", | ||
"axios": "0.16.2", | ||
@@ -5,0 +5,0 @@ "vue-axios": "2.0.2" |
@@ -30,3 +30,3 @@ { | ||
"@websanova/vue-auth": "2.14.1-beta", | ||
"@websanova/vue-auth": "2.14.2-beta", | ||
"axios": "0.16.2", | ||
@@ -33,0 +33,0 @@ "vue-axios": "2.0.2" |
@@ -9,17 +9,36 @@ # Demo | ||
The demos are in separate folders to make it simpler to test standalone side by side. | ||
~~~ | ||
> cd demos/2.x | ||
> npm install | ||
> npm run 1.x.demo | ||
> npm run 2.x.demo | ||
> npm run demo | ||
https://192.168.10.10:8002 | ||
~~~ | ||
Note: For Vue 2 demo there is a separate package.json. Unfortunately there is no really great way to run both at the same time. | ||
~~~ | ||
> cd demos/1.x | ||
> npm install | ||
> npm run demo | ||
https://192.168.10.10:8001 | ||
~~~ | ||
If a different path is required it must be set in the `demo/app.js` file. | ||
**Note:** By default the config for the demos is assuming that it's running on a virtual box on host `0.0.0.0`. | ||
To run the build: | ||
To connect to the demos you would connect to that boxes IP address followed by the port. | ||
## Changing Local Path of Demo App | ||
The `npm run demo` is just a short cut to a command in the `scripts` section of the `package.json`. | ||
~~~ | ||
> webpack | ||
~~~ | ||
"scripts": { | ||
"demo": "webpack-dev-server --https --host=0.0.0.0 --port=8002" | ||
} | ||
~~~ | ||
This command can be run directly with whatever parameters are required locally. |
# FAQ | ||
## General | ||
### I'm getting an error that `router` is not found. | ||
@@ -30,1 +32,9 @@ | ||
In this case write a custom [auth](https://github.com/websanova/vue-auth/tree/master/drivers/auth) and simply append the fields together using some kind of separator such as a pipe (`|`), semicolon (`;`), etc. | ||
## Axios | ||
### I only see `Error: Request failed with status code 400...` text when I print out the error. | ||
The response from axios is contained within the response object. You should try to `console(res.response)`. |
@@ -17,3 +17,3 @@ { | ||
"version": "2.14.1-beta", | ||
"version": "2.14.2-beta", | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -18,2 +18,4 @@ var Auth = require('./auth.js')(); | ||
Vue.auth = auth; | ||
Object.defineProperties(Vue.prototype, { | ||
@@ -20,0 +22,0 @@ $auth: { |
781649
112
11621