{"action":"created","issue":{"url":"https://api.github.com/repos/strapi/strapi-sdk-javascript/issues/36","repository_url":"https://api.github.com/repos/strapi/strapi-sdk-javascript","labels_url":"https://api.github.com/repos/strapi/strapi-sdk-javascript/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/strapi/strapi-sdk-javascript/issues/36/comments","events_url":"https://api.github.com/repos/strapi/strapi-sdk-javascript/issues/36/events","html_url":"https://github.com/strapi/strapi-sdk-javascript/issues/36","id":364477022,"node_id":"MDU6SXNzdWUzNjQ0NzcwMjI=","number":36,"title":"Auth In Headers","user":{"login":"lajap","id":36161734,"node_id":"MDQ6VXNlcjM2MTYxNzM0","avatar_url":"https://avatars1.githubusercontent.com/u/36161734?v=4","gravatar_id":"","url":"https://api.github.com/users/lajap","html_url":"https://github.com/lajap","followers_url":"https://api.github.com/users/lajap/followers","following_url":"https://api.github.com/users/lajap/following{/other_user}","gists_url":"https://api.github.com/users/lajap/gists{/gist_id}","starred_url":"https://api.github.com/users/lajap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lajap/subscriptions","organizations_url":"https://api.github.com/users/lajap/orgs","repos_url":"https://api.github.com/users/lajap/repos","events_url":"https://api.github.com/users/lajap/events{/privacy}","received_events_url":"https://api.github.com/users/lajap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-27T13:29:32Z","updated_at":"2018-10-24T08:07:57Z","closed_at":null,"author_association":"NONE","body":"<!-- Chose BUG or FEATURE REQUEST template and delete the one you don't use-->\r\n<!-- ⚠️ Don't forgot the checkbox at the end of your issue -->\r\n\r\n<!-- ⚠️ Before writing your issue make sure you are using :-->\r\n<!-- Node 9.x.x -->\r\n<!-- npm 5.x.x -->\r\n<!-- The latest version of Strapi -->\r\n\r\n**Informations**\r\n- **Node.js version**: 9.11.1\r\n- **npm version**: 6.4.1\r\n- **Strapi version: 3.0.0-alpha**: 14.1.1\r\n- **Strapi-sdk-javascript version**: latest\r\n- **Browser or Node.js**: Node.js\r\n\r\n\r\n**What is the current behavior?**\r\nAfter a successful login or register, Strapi makes a successful request and get, with graphql enabled, content type with authenticated role. This content type needs authentication to bee accessed. But a refresh after login or register, Strapi Error: Forbidden on the backend and TypeError: Cannot read property 'forEach' of null from NUXT\r\n\r\nI followed the Cooking a Deliveroo Clone Tutorials\r\nhttps://blog.strapi.io/cooking-a-deliveroo-clone-with-nuxt-vue-js-graphql-strapi-and-stripe-setup-part-1-7/\r\n\r\nThe tutorials failed to address non-public role. It seems request from nuxt to strapi has no authentication bearer [token] header on refresh, yet I have both jwt in sessionStorage on my browser and cookies.\r\n\r\n**Confirm**\r\n- [ ] I'm sure that this issue hasn't already been referenced\r\n<!-- ⬆️ Don't delete this checkbox from your issue and approve it.  -->\r\n<!-- ⚠️ Make sure to browse the opened and closed issues. -->\r\n"},"comment":{"url":"https://api.github.com/repos/strapi/strapi-sdk-javascript/issues/comments/432555594","html_url":"https://github.com/strapi/strapi-sdk-javascript/issues/36#issuecomment-432555594","issue_url":"https://api.github.com/repos/strapi/strapi-sdk-javascript/issues/36","id":432555594,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjU1NTU5NA==","user":{"login":"lauriejim","id":5716596,"node_id":"MDQ6VXNlcjU3MTY1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5716596?v=4","gravatar_id":"","url":"https://api.github.com/users/lauriejim","html_url":"https://github.com/lauriejim","followers_url":"https://api.github.com/users/lauriejim/followers","following_url":"https://api.github.com/users/lauriejim/following{/other_user}","gists_url":"https://api.github.com/users/lauriejim/gists{/gist_id}","starred_url":"https://api.github.com/users/lauriejim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauriejim/subscriptions","organizations_url":"https://api.github.com/users/lauriejim/orgs","repos_url":"https://api.github.com/users/lauriejim/repos","events_url":"https://api.github.com/users/lauriejim/events{/privacy}","received_events_url":"https://api.github.com/users/lauriejim/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T08:07:57Z","updated_at":"2018-10-24T08:07:57Z","author_association":"MEMBER","body":"Hello @lajap , thank you for reporting this issue. We are currently on another feature and bug fix. Since time is lacking on our side, feel free investigate and submit a PR, we’ll appreciate your contribution on this issue! "}}
{"actor":{"display_login":"lauriejim"}}