{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt-community/hapi-nuxt/issues/12","repository_url":"https://api.github.com/repos/nuxt-community/hapi-nuxt","labels_url":"https://api.github.com/repos/nuxt-community/hapi-nuxt/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/nuxt-community/hapi-nuxt/issues/12/comments","events_url":"https://api.github.com/repos/nuxt-community/hapi-nuxt/issues/12/events","html_url":"https://github.com/nuxt-community/hapi-nuxt/issues/12","id":318218606,"number":12,"title":"What about sessions","user":{"login":"victorhramos","id":9410768,"avatar_url":"https://avatars1.githubusercontent.com/u/9410768?v=4","gravatar_id":"","url":"https://api.github.com/users/victorhramos","html_url":"https://github.com/victorhramos","followers_url":"https://api.github.com/users/victorhramos/followers","following_url":"https://api.github.com/users/victorhramos/following{/other_user}","gists_url":"https://api.github.com/users/victorhramos/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhramos/subscriptions","organizations_url":"https://api.github.com/users/victorhramos/orgs","repos_url":"https://api.github.com/users/victorhramos/repos","events_url":"https://api.github.com/users/victorhramos/events{/privacy}","received_events_url":"https://api.github.com/users/victorhramos/received_events","type":"User","site_admin":false},"labels":[{"id":881727265,"url":"https://api.github.com/repos/nuxt-community/hapi-nuxt/labels/cmty:question","name":"cmty:question","color":"5af1ca","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-26T22:28:11Z","updated_at":"2018-04-26T22:53:26Z","closed_at":"2018-04-26T22:28:12Z","author_association":"NONE","body":"Tried to get sessions working with hapi-server-session but it seens to not are sent to nuxtServerInit\r\nThis is my server.js\r\n\r\n```javascript \r\nconst {Server} = require('hapi');\r\nconst hapiNuxt = require('hapi-nuxt'); // 'hapi-nuxt'\r\n\r\nasync function start() {\r\n    const server = new Server({port: 3000});\r\n    await server.register(hapiNuxt);\r\n    await server.register({\r\n        plugin: require('hapi-server-session'),\r\n        options: {\r\n            cookie: {\r\n                isSecure: false, // never set to false in production\r\n            },\r\n        },\r\n    });\r\n\r\n    server.route({\r\n        method: 'POST',\r\n        path: '/ssd',\r\n        handler: function (req, h) {\r\n            req.session.ssd = req.payload.ssd;\r\n            return {\r\n                ok: true,\r\n                ssd: req.session.ssd\r\n            }\r\n        }\r\n\r\n    });\r\n\r\n    await server.start();\r\n\r\n    console.log(`Hapi server listening on http://localhost:3000`);\r\n}\r\n\r\nstart().catch(console.error);\r\n```\r\nAnd at my store/index.js:\r\n```javascript\r\n        nuxtServerInit({state, commit}, {req}) {\r\n            if (req.session && req.session.ssd) {\r\n                commit('restoreState', req.session.ssd)\r\n            }\r\n        },\r\n```\r\nwith console.log(req.session) receiving undefined\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nuxt-community/hapi-nuxt/issues/comments/384813070","html_url":"https://github.com/nuxt-community/hapi-nuxt/issues/12#issuecomment-384813070","issue_url":"https://api.github.com/repos/nuxt-community/hapi-nuxt/issues/12","id":384813070,"user":{"login":"victorhramos","id":9410768,"avatar_url":"https://avatars1.githubusercontent.com/u/9410768?v=4","gravatar_id":"","url":"https://api.github.com/users/victorhramos","html_url":"https://github.com/victorhramos","followers_url":"https://api.github.com/users/victorhramos/followers","following_url":"https://api.github.com/users/victorhramos/following{/other_user}","gists_url":"https://api.github.com/users/victorhramos/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhramos/subscriptions","organizations_url":"https://api.github.com/users/victorhramos/orgs","repos_url":"https://api.github.com/users/victorhramos/repos","events_url":"https://api.github.com/users/victorhramos/events{/privacy}","received_events_url":"https://api.github.com/users/victorhramos/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T22:53:26Z","updated_at":"2018-04-26T22:53:26Z","author_association":"NONE","body":"Done with this\r\n![image](https://user-images.githubusercontent.com/9410768/39335932-78dfacaa-498b-11e8-8e4f-73af0a60b468.png)\r\n"}}
{"actor":{"display_login":"victorhramos"}}