{"id":24383229,"url":"https://github.com/firstandthird/hapi-auth-email","last_synced_at":"2025-07-24T20:37:22.227Z","repository":{"id":33996906,"uuid":"37750902","full_name":"firstandthird/hapi-auth-email","owner":"firstandthird","description":"hapi plugin for login with email/password","archived":false,"fork":false,"pushed_at":"2017-04-26T23:34:39.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-29T23:46:25.288Z","etag":null,"topics":["hapi-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Microsoft/dotnet-reliability","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firstandthird.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":"2015-06-19T23:37:13.000Z","updated_at":"2020-05-19T03:09:41.000Z","dependencies_parsed_at":"2022-07-13T22:43:07.782Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/hapi-auth-email","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/firstandthird/hapi-auth-email","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-auth-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-auth-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-auth-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-auth-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/hapi-auth-email/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-auth-email/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266902914,"owners_count":24003789,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hapi-plugin"],"created_at":"2025-01-19T10:13:56.721Z","updated_at":"2025-07-24T20:37:22.201Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","readme":"# Hapi Email Authentication\n\nUsage:\n\n```js\nserver.register({\n  register: require('hapi-auth-email'),\n  options: {}\n}, function(err) {\n  // ...\n  server.auth.strategy('email', 'email', true);\n});\n```\n\nOptions:\n\n - `schemeName` - Name to register and the  auth scheme. Default: `'email'`\n - `namespace` - Path to register server methods. Default: `'auth.'`\n - `getAccount` - Method that returns a user account. Params: `request`, `callback(err, user)`. Returned user must contain the following properties: `email`, `hash`, `salt`\n - `useDefaultViews` - Set to false to disable built in views. Default: `true`\n - `redirectOnTry` - Redirect unauthenticated users when auth mode is `try`. Default: `true`\n - `redirectTo` - Url to redirect user to. Default: `'/login'`\n - `hashConfig` - Any valid https://github.com/davidmurdoch/easy-pbkdf2#options\n\nThe following addition options are only for built in views:\n - `saveAccount` - Method to save the user. Only used when using the built in views. Params: `request`, `user`, `callback(err, user)`\n - `loginPathTemplate` / `registerPathTemplate` / `resetPassPathTemplate` - Method to override view.\n - `loginPath` - Login url for built in view. Default: `'/login'`\n - `registerPath` - Registration url for built in view. Default: `'/register'`\n - `resetPassPath` - Reset url for built in view. Default `'/reset'`\n - `successEndpont` - Url to redirect to on successful login or registration when `?next` param doesn't exist. Default: `'/'`\n - `cookieName` - Cookie name for built in views. Default: `'hapi-auth-email'`\n - `cookieOptions` - Any valid Hapi cookie option.\n - `loginForm` / `registerForm` / `resetForm`\n  - `name`: Name used on the form.\n  - `description`: Shown under name.\n\nMethods:\n\nThese methods may be attached to a different namespace if `options.namespace` is set.\n\n - `server.auth.generateHash` - Params: `user`, `password`, `callback(err, user)`\n - `server.auth.validatePassword` - Params: `user`, `password`, `callback(err, isValid)`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fhapi-auth-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fhapi-auth-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fhapi-auth-email/lists"}