Skip to content

Commit f0d61b3

Browse files
author
Ankur Srivastava
committed
added a todo to decode expiry from jwt token
1 parent c7df69b commit f0d61b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

front/src/app/authentication/authentication.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)