{"id":16815586,"url":"https://github.com/ericzon/custom-passport-strategy","last_synced_at":"2025-08-23T15:06:50.046Z","repository":{"id":34292285,"uuid":"174816403","full_name":"ericzon/custom-passport-strategy","owner":"ericzon","description":"custom-passport-strategy","archived":false,"fork":false,"pushed_at":"2022-02-11T17:18:19.000Z","size":42,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T16:46:51.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericzon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-10T11:50:04.000Z","updated_at":"2020-08-10T15:36:54.000Z","dependencies_parsed_at":"2022-08-08T00:15:33.725Z","dependency_job_id":null,"html_url":"https://github.com/ericzon/custom-passport-strategy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fcustom-passport-strategy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fcustom-passport-strategy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fcustom-passport-strategy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericzon%2Fcustom-passport-strategy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericzon","download_url":"https://codeload.github.com/ericzon/custom-passport-strategy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244033091,"owners_count":20386872,"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-13T10:34:53.444Z","updated_at":"2025-03-17T12:28:45.847Z","avatar_url":"https://github.com/ericzon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custom-passport-strategy\n\n[Passport](http://passportjs.org/) strategy for token authentication. \n\nIt offers two built-in extractors:\n- extractTokenFromHeader (by default)\n- extractTokenFromCookie\n\nIt accepts an array of extractors, executed sequentially to get the token from incoming request.\n\n```\nconst options = {\n    ...\n    extractor: [\n        ExtractorHelper.extractTokenFromHeader,\n        ExtractorHelper.extractTokenFromCookie\n    ]\n    ...\n}\n\n```\n\n## Install\n\n    $ npm install custom-passport-strategy\n\n## Debug\n\nThis library uses debug logger to help with debugging tasks. Just enable logs with:\n```\nexport DEBUG='strategy-lib:*'\n```\n\n## Development\n\n    $ npm run format\n    $ npm run lint\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fcustom-passport-strategy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericzon%2Fcustom-passport-strategy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericzon%2Fcustom-passport-strategy/lists"}