{"action":"created","issue":{"url":"https://api.github.com/repos/rkusa/koa-passport/issues/61","repository_url":"https://api.github.com/repos/rkusa/koa-passport","labels_url":"https://api.github.com/repos/rkusa/koa-passport/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/rkusa/koa-passport/issues/61/comments","events_url":"https://api.github.com/repos/rkusa/koa-passport/issues/61/events","html_url":"https://github.com/rkusa/koa-passport/issues/61","id":165927895,"number":61,"title":"passport facebook route 404 error","user":{"login":"proua","id":6795088,"avatar_url":"https://avatars.githubusercontent.com/u/6795088?v=3","gravatar_id":"","url":"https://api.github.com/users/proua","html_url":"https://github.com/proua","followers_url":"https://api.github.com/users/proua/followers","following_url":"https://api.github.com/users/proua/following{/other_user}","gists_url":"https://api.github.com/users/proua/gists{/gist_id}","starred_url":"https://api.github.com/users/proua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proua/subscriptions","organizations_url":"https://api.github.com/users/proua/orgs","repos_url":"https://api.github.com/users/proua/repos","events_url":"https://api.github.com/users/proua/events{/privacy}","received_events_url":"https://api.github.com/users/proua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-16T12:47:26Z","updated_at":"2016-07-16T13:01:57Z","closed_at":null,"body":"Versions\r\n\"koa-passport\": \"^1.3.0\"\r\n\"koa-router\": \"^5.4.0\"\r\nNodeJS 6.1.0\r\n\r\nI get 404 error when use koa-passport and koa-router in my app\r\nmy route file\r\n```javascript\r\nconst Router = require('koa-router');\r\nconst passport = require('koa-passport');\r\n\r\nfunction register (app) {\r\n    const router = new Router({\r\n        prefix: '/auth'\r\n    });\r\n    router.get('/facebook', function* () {\r\n        passport.authenticate('facebook');\r\n    });\r\n    app.use(router.routes());\r\n    app.use(router.allowedMethods());\r\n}\r\n\r\nmodule.exports = register;\r\n```\r\napp.js\r\n\r\n```javascript\r\napp.use(passport.initialize());\r\napp.use(passport.session());\r\n//....\r\nrequire('./app/server/routes/auth.route')(app);\r\n```\r\nWhen I go to the '/auth/facebook' route I get 'Page not Found' error.\r\nIf I comment passport.authenticate('facebook'); line route works fine with something like this.body = 'facebook login';\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/rkusa/koa-passport/issues/comments/233129341","html_url":"https://github.com/rkusa/koa-passport/issues/61#issuecomment-233129341","issue_url":"https://api.github.com/repos/rkusa/koa-passport/issues/61","id":233129341,"user":{"login":"proua","id":6795088,"avatar_url":"https://avatars.githubusercontent.com/u/6795088?v=3","gravatar_id":"","url":"https://api.github.com/users/proua","html_url":"https://github.com/proua","followers_url":"https://api.github.com/users/proua/followers","following_url":"https://api.github.com/users/proua/following{/other_user}","gists_url":"https://api.github.com/users/proua/gists{/gist_id}","starred_url":"https://api.github.com/users/proua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proua/subscriptions","organizations_url":"https://api.github.com/users/proua/orgs","repos_url":"https://api.github.com/users/proua/repos","events_url":"https://api.github.com/users/proua/events{/privacy}","received_events_url":"https://api.github.com/users/proua/received_events","type":"User","site_admin":false},"created_at":"2016-07-16T13:01:57Z","updated_at":"2016-07-16T13:01:57Z","body":"Sorry, my mistake."}}
{"actor":{"display_login":"proua"}}