{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/auth0-angular/issues/146","labels_url":"https://api.github.com/repos/auth0/auth0-angular/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/auth0/auth0-angular/issues/146/comments","events_url":"https://api.github.com/repos/auth0/auth0-angular/issues/146/events","html_url":"https://github.com/auth0/auth0-angular/issues/146","id":63008487,"number":146,"title":"Should Redirect to loginURL when Token Expired and requiredLogin","user":{"login":"cancan101","id":51059,"avatar_url":"https://avatars.githubusercontent.com/u/51059?v=3","gravatar_id":"","url":"https://api.github.com/users/cancan101","html_url":"https://github.com/cancan101","followers_url":"https://api.github.com/users/cancan101/followers","following_url":"https://api.github.com/users/cancan101/following{/other_user}","gists_url":"https://api.github.com/users/cancan101/gists{/gist_id}","starred_url":"https://api.github.com/users/cancan101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cancan101/subscriptions","organizations_url":"https://api.github.com/users/cancan101/orgs","repos_url":"https://api.github.com/users/cancan101/repos","events_url":"https://api.github.com/users/cancan101/events{/privacy}","received_events_url":"https://api.github.com/users/cancan101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-19T14:53:24Z","updated_at":"2015-05-04T19:30:03Z","closed_at":null,"body":"This line here: https://github.com/auth0/auth0-angular/blob/01a23ef62aaa0f1506c33a0c88c2a6a26227fd40/src/auth0-angular.js#L315\r\n\r\njust checks `auth.isAuthenticated` which is True even when the token is expired. That means that once a token expired, the user can navigate to routes that `requiresLogin`."},"comment":{"url":"https://api.github.com/repos/auth0/auth0-angular/issues/comments/98825660","html_url":"https://github.com/auth0/auth0-angular/issues/146#issuecomment-98825660","issue_url":"https://api.github.com/repos/auth0/auth0-angular/issues/146","id":98825660,"user":{"login":"mgonto","id":723723,"avatar_url":"https://avatars.githubusercontent.com/u/723723?v=3","gravatar_id":"","url":"https://api.github.com/users/mgonto","html_url":"https://github.com/mgonto","followers_url":"https://api.github.com/users/mgonto/followers","following_url":"https://api.github.com/users/mgonto/following{/other_user}","gists_url":"https://api.github.com/users/mgonto/gists{/gist_id}","starred_url":"https://api.github.com/users/mgonto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgonto/subscriptions","organizations_url":"https://api.github.com/users/mgonto/orgs","repos_url":"https://api.github.com/users/mgonto/repos","events_url":"https://api.github.com/users/mgonto/events{/privacy}","received_events_url":"https://api.github.com/users/mgonto/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T19:30:03Z","updated_at":"2015-05-04T19:30:03Z","body":"Fixed all docs on this.\r\n\r\nThanks for letting us know :)."}}