{"id":13836142,"url":"https://github.com/oxsav/fastify-firebase-auth","last_synced_at":"2025-07-10T13:31:45.058Z","repository":{"id":81858405,"uuid":"108681595","full_name":"oxsav/fastify-firebase-auth","owner":"oxsav","description":"Fastify Firebase Auth","archived":false,"fork":false,"pushed_at":"2018-06-15T08:01:22.000Z","size":5,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T22:51:28.073Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oxsav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-28T20:23:48.000Z","updated_at":"2024-06-16T16:58:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e14bd31-5813-4264-a87e-6f9ac7085f6e","html_url":"https://github.com/oxsav/fastify-firebase-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oxsav/fastify-firebase-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxsav%2Ffastify-firebase-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxsav%2Ffastify-firebase-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxsav%2Ffastify-firebase-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxsav%2Ffastify-firebase-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxsav","download_url":"https://codeload.github.com/oxsav/fastify-firebase-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxsav%2Ffastify-firebase-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264585372,"owners_count":23632646,"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-08-04T15:00:36.636Z","updated_at":"2025-07-10T13:31:44.777Z","avatar_url":"https://github.com/oxsav.png","language":"JavaScript","funding_links":[],"categories":["\u003ch2 align=\"center\"\u003eAwesome Fastify\u003c/h2\u003e"],"sub_categories":["\u003ch2 align=\"center\"\u003eEcosystem\u003c/h2\u003e"],"readme":"# fastify-firebase-auth\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)\n\nFastify Firebase Auth API plugin.  \nUnder the hood the [firebase](https://github.com/firebase/firebase-js-sdk) is used, the options that you pass to `register` will be passed to the Firebase service.\n\n## Install\n```\nnpm i fastify-firebase-auth --save\n```\n\n## Usage\n\nAdd it to you project with `register` and you are done!  \nThis plugin will add the `auth` namespace in your Fastify instance, with the all functions in the [Firebase Auth API](https://firebase.google.com/docs/reference/js/firebase.auth.Auth):\n\nExample:\n```js\nconst fastify = require('fastify')\n\nfastify.register(require('fastify-firebase-auth'), {\n    apiKey: \u003cFIREBASE_API_KEY\u003e,\n    databaseURL: \u003cDATABASE_URL\u003e,\n    projectId: \u003cPROJECT_ID\u003e,\n    storageBucket: \u003cURL_STORAGE_BUCKET\u003e\n})\n\nfastify.post('/signin', async (request, reply) =\u003e {\n    const {email, password} = request.body;\n    const response = await fastify.auth.signInWithEmailAndPassword(email, password);\n    return response;\n});\n\nfastify.listen(3000, err =\u003e {\n  if (err) throw err\n  console.log(`server listening on ${fastify.server.address().port}`)\n})\n```\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxsav%2Ffastify-firebase-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxsav%2Ffastify-firebase-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxsav%2Ffastify-firebase-auth/lists"}