There was an error while loading. Please reload this page.
1 parent c7df69b commit f0d61b3Copy full SHA for f0d61b3
front/src/app/authentication/authentication.service.ts
@@ -79,6 +79,7 @@ export class AuthenticationService {
79
let response = 'response';
80
let tokenString = 'jwt';
81
let token = body[tokenString];
82
+ //TODO: Decode token and get expiry time from here, someone has to implement this. :(
83
let expiry = new Date(body['exp']);
84
let maxTokenExpiryTime = expiry.getTime();
85
localStorage.setItem('token', token);
0 commit comments