rucken / core

Core and Admin UI for Angular7+ web applications
https://rucken.github.io/core
MIT License
46 stars 5 forks source link

fix: Update method for verify token age range #280

Closed EndyKaufman closed 5 years ago

EndyKaufman commented 5 years ago

https://github.com/rucken/core/blob/4dd05fddbe193350e9c5b65cee7f4fa9a92d1841/libs/rucken/core/src/lib/modules/auth/services/token.service.ts#L84

from new Date() > new Date(this.getTokenData(token).payload.exp * 1000);

to new Date(this.getTokenData(token).payload.imp 1000) > new Date(this.getTokenData(token).payload.exp 1000)