{"action":"created","issue":{"url":"https://api.github.com/repos/DominikAngerer/auth0-vue/issues/2","repository_url":"https://api.github.com/repos/DominikAngerer/auth0-vue","labels_url":"https://api.github.com/repos/DominikAngerer/auth0-vue/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/DominikAngerer/auth0-vue/issues/2/comments","events_url":"https://api.github.com/repos/DominikAngerer/auth0-vue/issues/2/events","html_url":"https://github.com/DominikAngerer/auth0-vue/issues/2","id":356182776,"node_id":"MDU6SXNzdWUzNTYxODI3NzY=","number":2,"title":"Logout loop","user":{"login":"nicholasshirley","id":1556844,"node_id":"MDQ6VXNlcjE1NTY4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1556844?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholasshirley","html_url":"https://github.com/nicholasshirley","followers_url":"https://api.github.com/users/nicholasshirley/followers","following_url":"https://api.github.com/users/nicholasshirley/following{/other_user}","gists_url":"https://api.github.com/users/nicholasshirley/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasshirley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasshirley/subscriptions","organizations_url":"https://api.github.com/users/nicholasshirley/orgs","repos_url":"https://api.github.com/users/nicholasshirley/repos","events_url":"https://api.github.com/users/nicholasshirley/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasshirley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-01T08:03:34Z","updated_at":"2018-09-01T10:07:50Z","closed_at":null,"author_association":"NONE","body":"Thanks so much for putting this together! It's frustrating that all of the official docs I've tried to follow so far haven't worked.\r\n\r\nOne issue, I can't actually log out with the tutorial. It does delete from local storage, but then `webAuth.authorize()` fires and the user is logged in again.\r\n\r\nTo fix I needed to:\r\n1. Add a logout route in the Auth0 dashboard\r\n2. Change the logout function to be:\r\n\r\n```javascript\r\nlogout() {\r\n  return new Promise((resolve, reject) => {\r\n    localStorage.removeItem('access_token')\r\n    localStorage.removeItem('id_token')\r\n    localStorage.removeItem('expires_at')\r\n    localStorage.removeItem('user')\r\n    webAuth.logout({\r\n      returnTo: 'http://localhost:8080/', // the logout route added to dashboard goes here\r\n      clientID: '...', // same clientID in the constructor\r\n    })\r\n})\r\n```\r\n\r\nI don't know if you're still updating this, but I'd be happy to make a PR with those changes."},"comment":{"url":"https://api.github.com/repos/DominikAngerer/auth0-vue/issues/comments/417848112","html_url":"https://github.com/DominikAngerer/auth0-vue/issues/2#issuecomment-417848112","issue_url":"https://api.github.com/repos/DominikAngerer/auth0-vue/issues/2","id":417848112,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzg0ODExMg==","user":{"login":"DominikAngerer","id":7952803,"node_id":"MDQ6VXNlcjc5NTI4MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/7952803?v=4","gravatar_id":"","url":"https://api.github.com/users/DominikAngerer","html_url":"https://github.com/DominikAngerer","followers_url":"https://api.github.com/users/DominikAngerer/followers","following_url":"https://api.github.com/users/DominikAngerer/following{/other_user}","gists_url":"https://api.github.com/users/DominikAngerer/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikAngerer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikAngerer/subscriptions","organizations_url":"https://api.github.com/users/DominikAngerer/orgs","repos_url":"https://api.github.com/users/DominikAngerer/repos","events_url":"https://api.github.com/users/DominikAngerer/events{/privacy}","received_events_url":"https://api.github.com/users/DominikAngerer/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T10:07:50Z","updated_at":"2018-09-01T10:07:50Z","author_association":"OWNER","body":"Strange that you got that issue - will add some tests. Feel free to add a PR and I will update the tutorial accordingly  👍 "}}
{"actor":{"display_login":"DominikAngerer"}}