{"id":19700514,"url":"https://github.com/draftbit/hapi-airtable-sms-authentication-plugin","last_synced_at":"2026-05-14T23:35:40.006Z","repository":{"id":57109595,"uuid":"176820966","full_name":"draftbit/hapi-airtable-sms-authentication-plugin","owner":"draftbit","description":" A plugin that adds Twilio SMS authentication to a Hapi server, utlizing Airtable as a data store ","archived":false,"fork":false,"pushed_at":"2019-03-20T21:38:01.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T21:57:22.780Z","etag":null,"topics":["airtable","hapi","nodejs","twilio"],"latest_commit_sha":null,"homepage":"","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/draftbit.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-20T21:37:26.000Z","updated_at":"2019-12-13T12:49:59.000Z","dependencies_parsed_at":"2022-08-20T17:41:01.392Z","dependency_job_id":null,"html_url":"https://github.com/draftbit/hapi-airtable-sms-authentication-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/draftbit/hapi-airtable-sms-authentication-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draftbit%2Fhapi-airtable-sms-authentication-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draftbit%2Fhapi-airtable-sms-authentication-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draftbit%2Fhapi-airtable-sms-authentication-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draftbit%2Fhapi-airtable-sms-authentication-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/draftbit","download_url":"https://codeload.github.com/draftbit/hapi-airtable-sms-authentication-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/draftbit%2Fhapi-airtable-sms-authentication-plugin/sbom","scorecard":{"id":354886,"data":{"date":"2025-08-11","repo":{"name":"github.com/draftbit/hapi-airtable-sms-authentication-plugin","commit":"f6cf10541115ac1c16ceb0c9c10d40ea12411bd4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-jrj9-5qp6-2v8q","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-8cf7-32gw-wr33","Warn: Project is vulnerable to: GHSA-hjrf-2m68-5959","Warn: Project is vulnerable to: GHSA-qwph-4952-7xr6","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T09:17:05.110Z","repository_id":57109595,"created_at":"2025-08-18T09:17:05.111Z","updated_at":"2025-08-18T09:17:05.111Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271113441,"owners_count":24701609,"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-08-19T02:00:09.176Z","response_time":63,"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":["airtable","hapi","nodejs","twilio"],"created_at":"2024-11-11T21:06:17.199Z","updated_at":"2026-05-14T23:35:39.979Z","avatar_url":"https://github.com/draftbit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hapi Airtable SMS Authentication Plugin\n\nA plugin that adds Twilio SMS authentication to a Hapi server, utilizing Airtable as a data store. It will add two endpoints - `/verify` and `/confirm` - that can be used to send a confirmation code and to confirm the confirmation code is correct.\n\n## Usage\n\nRegister the plugin with your Hapi server by doing the following:\n\n```\nawait server.register({\n  plugin: require(\"@draftbit/hapi-airtable-sms-authentication-plugin\"),\n  options: {\n    airtableBase: AIRTABLE_BASE,\n    airtableApiToken: AIRTABLE_API_TOKEN,\n    twilioAccountSid: TWILIO_ACCOUNT_SID,\n    twilioAuthToken: TWILIO_AUTH_TOKEN,\n    twilioNumber: TWILIO_NUMBER,\n    messagePrefix: \"Your Draftbit confirmation code is \",\n  }\n});\n```\n\nIn Airtable, you must have a table called `Users`, with the following columns:\n\n- `phone_number`, of type Single line text (not of type Phone Number, to avoid formatting inconsistencies)\n- `login_code`, of type Single line text\n- `phone_confirmed`, of type Checkbox\n\nThe following three routes will be added to your server:\n\n- `/verify` - `GET` - Generates a code and triggers the first step in the authentication process, sending the SMS message. On success, returns `{ OK: true }`. On failure, returns `400 Bad Request`. The following query parameters are required:\n  - `phoneNumber` - The phone number of the authenticating user\n- `/confirm` - `GET` - Confirms that the code passed in for the phone number is the correct code. Marks `phone_confirmed` as true if user has entered correct code. On success, returns `{ userId: string }`. On failure, returns `401 Unauthorized`.\n  - `phoneNumber` - The phone number of the authenticating user\n  - `code` - The code that the user has entered\n\n## Options\n\nAll options are required.\n\n- `airtableBase` - The ID of the Airtable Base you wish to interact with\n- `airtableApiToken` - Your Airtable API key\n- `twilioAccountSid` - Twilio Account SID from www.twilio.com/console\n- `twilioAuthToken` - Twilio Auth Token from www.twilio.com/console\n- `twilioNumber` - Your Twilio phone number\n- `messagePrefix` - The text to prefix in the SMS message before the code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdraftbit%2Fhapi-airtable-sms-authentication-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdraftbit%2Fhapi-airtable-sms-authentication-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdraftbit%2Fhapi-airtable-sms-authentication-plugin/lists"}