File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed
documentation/pages/getting-started Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 58
58
## Quick start
59
59
Run development server
60
60
``` shell
61
- yarn run serve
61
+ yarn run start
62
62
```
63
63
64
64
### If you use app with backend support, please use
65
65
```
66
- yarn run serve :backend
66
+ yarn run start :backend
67
67
```
68
68
69
69
## Support
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 3.1.4]
4
+
5
+ ### Fixed
6
+
7
+ - Fix invalid token validation
8
+
3
9
## [ 3.1.3]
4
10
5
11
### Fixed
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "serve " : " vue-cli-service serve --port 3000" ,
7
- "serve :backend" : " VUE_APP_BACKEND=true vue-cli-service serve --port 3000" ,
6
+ "start " : " vue-cli-service serve --port 3000" ,
7
+ "start :backend" : " VUE_APP_BACKEND=true vue-cli-service serve --port 3000" ,
8
8
"build" : " VUE_APP_BACKEND=true vue-cli-service build" ,
9
9
"lint" : " vue-cli-service lint" ,
10
- "start " : " node server.js"
10
+ "node " : " node server.js"
11
11
},
12
12
"dependencies" : {
13
13
"@amcharts/amcharts4" : " ^4.6.1" ,
Original file line number Diff line number Diff line change 13
13
<h5 >Quick Start:</h5 >
14
14
<ol >
15
15
<li >1. Run <code >yarn install</code ></li >
16
- <li >2. Run <code >yarn serve </code ></li >
17
- <li >2.1 For running the app with backend support please run <code >yarn serve :backend</code >
16
+ <li >2. Run <code >yarn start </code ></li >
17
+ <li >2.1 For running the app with backend support please run <code >yarn start :backend</code >
18
18
<span class =" small text-muted" > (Required only in full stack version)</span >
19
19
</li >
20
20
</ol >
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ export function isAuthenticated(token) {
7
7
if ( ! token ) return ;
8
8
const date = new Date ( ) . getTime ( ) / 1000 ;
9
9
const data = jwt . decode ( token ) ;
10
+ if ( ! data ) return ;
10
11
return date < data . exp ;
11
12
}
12
13
13
14
export const AuthMixin = {
14
15
methods : {
15
16
isAuthenticated
16
17
}
17
- } ;
18
+ } ;
You can’t perform that action at this time.
0 commit comments