{"action":"closed","issue":{"url":"https://api.github.com/repos/auth0/angular2-jwt/issues/334","repository_url":"https://api.github.com/repos/auth0/angular2-jwt","labels_url":"https://api.github.com/repos/auth0/angular2-jwt/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/auth0/angular2-jwt/issues/334/comments","events_url":"https://api.github.com/repos/auth0/angular2-jwt/issues/334/events","html_url":"https://github.com/auth0/angular2-jwt/issues/334","id":221540013,"number":334,"title":"tokenNotExpired() always return false","user":{"login":"axelpcr","id":15647420,"avatar_url":"https://avatars3.githubusercontent.com/u/15647420?v=4","gravatar_id":"","url":"https://api.github.com/users/axelpcr","html_url":"https://github.com/axelpcr","followers_url":"https://api.github.com/users/axelpcr/followers","following_url":"https://api.github.com/users/axelpcr/following{/other_user}","gists_url":"https://api.github.com/users/axelpcr/gists{/gist_id}","starred_url":"https://api.github.com/users/axelpcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelpcr/subscriptions","organizations_url":"https://api.github.com/users/axelpcr/orgs","repos_url":"https://api.github.com/users/axelpcr/repos","events_url":"https://api.github.com/users/axelpcr/events{/privacy}","received_events_url":"https://api.github.com/users/axelpcr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2017-04-13T11:51:07Z","updated_at":"2018-05-14T20:56:07Z","closed_at":"2018-05-14T20:56:07Z","author_association":"NONE","body":"Hi, I use your library without Ionic (native Angular 2) and all time tokenNotExpired() method return false.\r\n\r\nWhen this code is exectued :\r\n```\r\n   loggedIn() {\r\n    console.log(tokenNotExpired());\r\n    return tokenNotExpired();\r\n  }\r\n\r\n  constructor(private router: Router) {}\r\n\r\n  canActivate() {\r\n    console.log(this.loggedIn());\r\n    if(this.loggedIn()) {\r\n      return true;\r\n    } else {\r\n      this.router.navigate(['login']);\r\n      return false;\r\n    }\r\n  }\r\n```\r\n\r\nI use this code for angular routing canActivate: [AuthGuard].\r\n\r\nBut tokenNotExpired() always return false.\r\n\r\nI don't understand why !\r\n\r\n"}}
{"actor":{"display_login":"chenkie"}}