{"id":19098671,"url":"https://github.com/bloggify/bloggify-passport","last_synced_at":"2026-05-27T12:30:18.331Z","repository":{"id":56472635,"uuid":"95872530","full_name":"Bloggify/bloggify-passport","owner":"Bloggify","description":"🛂 Authentification for Bloggify made simple, using Passport.","archived":false,"fork":false,"pushed_at":"2023-05-04T13:18:55.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T04:49:31.371Z","etag":null,"topics":["authentication","bloggify","hacktoberfest","login-system","passport"],"latest_commit_sha":null,"homepage":null,"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/Bloggify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-30T09:27:11.000Z","updated_at":"2023-05-03T11:17:06.000Z","dependencies_parsed_at":"2022-08-15T19:20:52.637Z","dependency_job_id":null,"html_url":"https://github.com/Bloggify/bloggify-passport","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloggify%2Fbloggify-passport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloggify%2Fbloggify-passport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloggify%2Fbloggify-passport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloggify%2Fbloggify-passport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bloggify","download_url":"https://codeload.github.com/Bloggify/bloggify-passport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240152243,"owners_count":19756048,"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":["authentication","bloggify","hacktoberfest","login-system","passport"],"created_at":"2024-11-09T03:47:02.023Z","updated_at":"2026-05-27T12:30:18.278Z","avatar_url":"https://github.com/Bloggify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --\u003e\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# bloggify-passport\n\n [![Version](https://img.shields.io/npm/v/bloggify-passport.svg)](https://www.npmjs.com/package/bloggify-passport) [![Downloads](https://img.shields.io/npm/dt/bloggify-passport.svg)](https://www.npmjs.com/package/bloggify-passport)\n\n\n\n\n\n\n\n\u003e Passport.js authentication for Bloggify.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :cloud: Installation\n\n```sh\n# Using npm\nnpm install --save bloggify-passport\n\n# Using yarn\nyarn add bloggify-passport\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :clipboard: Example\n\n\n\n```js\nconst passport = [\"passport\", {\n    login_url: \"/user/signin\",\n    verify_callback (email, password, cb) {\n        if (email === \"foo@bar.com\" \u0026\u0026 password === \"42\") {\n            return cb(null, { name: \"foo\" })\n        }\n        cb(new Error(\"Invalid username or password.\"))\n    }\n}]\n```\n\n\n\n\n\n\n\n\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n\n\n\n\n\n## :memo: Documentation\n\n\n### Plugin Configuration\n\n- **Object** `config`:\n - `strategy` (String): The PassportJS strategy name (default: \"local\").\n - `auth_options` (Object): Contains the authentication options.\n - `strategy_options` (Object): Contains the strategy options.\n - `success_url` (String): The access URL.\n - `login_url` (String): The login URL.\n - `verify_callback`(Function): The PassportJS callback function.\n - `failure_url` (String): The login error URL.\n - `fresh_user` (String): Whether to reload the user data on each request (default: `false`)\n\nThe model objects can be accessed by requiring the module or accessing the `Bloggify.models` object.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :dizzy: Where is this library used?\nIf you are using this library in one of your projects, add it in this list. :sparkles:\n\n - `bloggify-user-auth`\n\n\n\n\n\n\n\n\n\n\n\n## :scroll: License\n\n[MIT][license] © [Bloggify][website]\n\n\n\n\n\n\n[license]: /LICENSE\n[website]: https://bloggify.org\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloggify%2Fbloggify-passport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloggify%2Fbloggify-passport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloggify%2Fbloggify-passport/lists"}