File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
front/src/app/authentication Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 88
99Simple angular2 app with python-flask backend (for learning angular2)
1010
11+ ## Dockerized version:
12+ ---
13+
14+ The current build is using ` nginx ` to serve static files.
15+
16+ 1 . In project root directory execute ` docker-compose up `
17+
18+ 2 . Navigate to ` http://localhost:3000 ` and login using ` admin:admin `
19+
20+
1121## Info
1222---
1323
@@ -61,12 +71,3 @@ Simple angular2 app with python-flask backend (for learning angular2)
6171 npm install
6272 npm run build:prod
6373 ```
64-
65- ## Docker support:
66- ---
67-
68- The current build is using `nginx` to serve static files. The pre-requisite is to run the following commands and then use `docker-compose`
69-
70- 1. In project root directory execute `docker-compose up`
71-
72- 2. Navigate to `http://localhost:3000` and login using `admin:admin`
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export class AuthenticationService {
7979 let response = 'response' ;
8080 let tokenString = 'jwt' ;
8181 let token = body [ tokenString ] ;
82+ //TODO: Decode token and get expiry time from here, someone has to implement this. :(
8283 let expiry = new Date ( body [ 'exp' ] ) ;
8384 let maxTokenExpiryTime = expiry . getTime ( ) ;
8485 localStorage . setItem ( 'token' , token ) ;
You can’t perform that action at this time.
0 commit comments