{"action":"created","issue":{"url":"https://api.github.com/repos/claustres/quasar-feathers-tutorial/issues/11","repository_url":"https://api.github.com/repos/claustres/quasar-feathers-tutorial","labels_url":"https://api.github.com/repos/claustres/quasar-feathers-tutorial/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/claustres/quasar-feathers-tutorial/issues/11/comments","events_url":"https://api.github.com/repos/claustres/quasar-feathers-tutorial/issues/11/events","html_url":"https://github.com/claustres/quasar-feathers-tutorial/issues/11","id":314308434,"number":11,"title":"Should redirect to home when trying to access restricted page and not logged in","user":{"login":"km333","id":37389351,"avatar_url":"https://avatars1.githubusercontent.com/u/37389351?v=4","gravatar_id":"","url":"https://api.github.com/users/km333","html_url":"https://github.com/km333","followers_url":"https://api.github.com/users/km333/followers","following_url":"https://api.github.com/users/km333/following{/other_user}","gists_url":"https://api.github.com/users/km333/gists{/gist_id}","starred_url":"https://api.github.com/users/km333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/km333/subscriptions","organizations_url":"https://api.github.com/users/km333/orgs","repos_url":"https://api.github.com/users/km333/repos","events_url":"https://api.github.com/users/km333/events{/privacy}","received_events_url":"https://api.github.com/users/km333/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-14T07:45:05Z","updated_at":"2018-04-15T03:49:29Z","closed_at":"2018-04-14T15:28:35Z","author_association":"NONE","body":"eg.\r\nI am not logged in and navigate to\r\nhttp://localhost:8080/#/chat\r\n\r\nI get a semi-rendered page and left there.\r\n(Can even enter messages which also get silently rejected on back-end)\r\n\r\nBackend throws error as it should\r\ninfo: error: messages - Method: find: No auth token\r\nerror:  NotAuthenticated: No auth token\r\n    at new NotAuthenticated (/home/mike/dev/quasar/quasar-feathers-tutorial/quasar-feathers/api/node_modules/@feathersjs/errors/lib/index.js:93:17)\r\n\r\nBetter to check auth when URL first attempted and redirect to home/signin etc."},"comment":{"url":"https://api.github.com/repos/claustres/quasar-feathers-tutorial/issues/comments/381378091","html_url":"https://github.com/claustres/quasar-feathers-tutorial/issues/11#issuecomment-381378091","issue_url":"https://api.github.com/repos/claustres/quasar-feathers-tutorial/issues/11","id":381378091,"user":{"login":"leob","id":993465,"avatar_url":"https://avatars3.githubusercontent.com/u/993465?v=4","gravatar_id":"","url":"https://api.github.com/users/leob","html_url":"https://github.com/leob","followers_url":"https://api.github.com/users/leob/followers","following_url":"https://api.github.com/users/leob/following{/other_user}","gists_url":"https://api.github.com/users/leob/gists{/gist_id}","starred_url":"https://api.github.com/users/leob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leob/subscriptions","organizations_url":"https://api.github.com/users/leob/orgs","repos_url":"https://api.github.com/users/leob/repos","events_url":"https://api.github.com/users/leob/events{/privacy}","received_events_url":"https://api.github.com/users/leob/received_events","type":"User","site_admin":false},"created_at":"2018-04-15T03:49:29Z","updated_at":"2018-04-15T03:49:29Z","author_association":"COLLABORATOR","body":"Not really sure what exactly the problem is ...\r\n\r\nIf you click 'refresh' in the browser then it executes the \"mounted\" lifecycle method in default.vue, and the default behavior then is to check for an authentication session and redirect back to the home page - if you're logged in then you stay logged in. Seems to me a reasonable behavior for a non-standard action (normally you'd go to the chat page by clicking on a link, not by typing a URL in the browser.\r\n\r\nJust leave the issue open, I'll check if your suggestion works (if it doesn't then I'll probably leave things as they are)."}}
{"actor":{"display_login":"leob"}}