{"id":17142451,"url":"https://github.com/dozoisch/koa-passport-example","last_synced_at":"2025-04-13T10:41:06.222Z","repository":{"id":18036481,"uuid":"21078285","full_name":"dozoisch/koa-passport-example","owner":"dozoisch","description":"Example using Koa and Passport, for a more in depth example see my repo /dozoisch/koa-react-full-example","archived":false,"fork":false,"pushed_at":"2014-06-21T20:53:16.000Z","size":144,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T02:06:11.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.dozoisch.com/integrating-passportjs-with-koa/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dozoisch.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-21T20:37:24.000Z","updated_at":"2017-05-27T21:26:49.000Z","dependencies_parsed_at":"2022-08-27T19:11:16.713Z","dependency_job_id":null,"html_url":"https://github.com/dozoisch/koa-passport-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozoisch%2Fkoa-passport-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozoisch%2Fkoa-passport-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozoisch%2Fkoa-passport-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozoisch%2Fkoa-passport-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dozoisch","download_url":"https://codeload.github.com/dozoisch/koa-passport-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248701161,"owners_count":21147988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T20:31:16.688Z","updated_at":"2025-04-13T10:41:06.200Z","avatar_url":"https://github.com/dozoisch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koa Passport Example\n\nThis is a small repo meant to show a minimal Koa Passport example using bcrypt. For a full example with react see [Koa-React-Full-Example](https://github.com/dozoisch/koa-passport-example). This repo was created to be used as example project for a blog post -- see http://www.dozoisch.com/integrating-passportjs-with-koa/.\n\n\n## Installation \u0026 Run\n\n```sh\n#Install deps\nnpm i\n\n\n# To run tests\nnpm test\n\n\n# To start the project on localhost:3000\nnpm start\n\n```\n\n\n##Usage\n\nTo try it, first run npm i, then you can wether run the tests with `npm test` or try it yourself `npm start`. You will need to go to `localhost:3000/user/:username/:password` to create the first user. You can then try to log him in. Go to `localhost:3000`, you should be redirected to `/login` where you can enter the credentials of the newly created user. You will then be redirected to the secured zone!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozoisch%2Fkoa-passport-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdozoisch%2Fkoa-passport-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozoisch%2Fkoa-passport-example/lists"}