forked from p15670423/monkey
Blank screen fix corrected
This commit is contained in:
parent
a6e61215f3
commit
ac63797f45
|
@ -98,7 +98,7 @@ export default class AuthService {
|
||||||
|
|
||||||
_isTokenExpired(token) {
|
_isTokenExpired(token) {
|
||||||
try {
|
try {
|
||||||
return decode(token)['exp'] + this.SECONDS_BEFORE_JWT_EXPIRES < Date.now() / 1000;
|
return decode(token)['exp'] - this.SECONDS_BEFORE_JWT_EXPIRES < Date.now() / 1000;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue