angular2-jwt icon indicating copy to clipboard operation
angular2-jwt copied to clipboard

V1.0 branch isTokenExpired need to check if token is null from tokenGetter

Open dannyzhan opened this issue 8 years ago • 3 comments

for example:

if (token === void 0) { token = this.tokenGetter(); } if(token === null) return true; var date = this.getTokenExpirationDate(token); offsetSeconds = offsetSeconds || 0;

without that check, there will be an error popup if user is not logged in

dannyzhan avatar Dec 07 '17 05:12 dannyzhan

@dannyzhan This should be fixed in v1.0 (see https://github.com/auth0/angular2-jwt/commit/fa91597e1501df173aa8cea29691adfacd0ad8a7).

xibre avatar Mar 12 '18 21:03 xibre

I confirm that this issue is fixed in v1.0

nicovanbelle avatar Mar 19 '18 12:03 nicovanbelle

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️

stale[bot] avatar Oct 26 '19 04:10 stale[bot]