{"id":13818225,"url":"https://github.com/tfarras/nestjs-firebase-admin","last_synced_at":"2025-03-19T01:31:03.678Z","repository":{"id":45938326,"uuid":"254888019","full_name":"tfarras/nestjs-firebase-admin","owner":"tfarras","description":"NestJS Module for Firebase Admin SDK","archived":false,"fork":false,"pushed_at":"2021-11-26T09:19:06.000Z","size":10,"stargazers_count":31,"open_issues_count":1,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T04:38:38.358Z","etag":null,"topics":["firebase","firebase-admin-sdk","nestjs","nodejs","sdk"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tfarras.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-11T14:41:27.000Z","updated_at":"2023-10-26T05:00:45.000Z","dependencies_parsed_at":"2022-09-03T23:52:24.363Z","dependency_job_id":null,"html_url":"https://github.com/tfarras/nestjs-firebase-admin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfarras%2Fnestjs-firebase-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfarras%2Fnestjs-firebase-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfarras%2Fnestjs-firebase-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfarras%2Fnestjs-firebase-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfarras","download_url":"https://codeload.github.com/tfarras/nestjs-firebase-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960361,"owners_count":20375102,"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":["firebase","firebase-admin-sdk","nestjs","nodejs","sdk"],"created_at":"2024-08-04T07:00:36.214Z","updated_at":"2025-03-19T01:31:03.477Z","avatar_url":"https://github.com/tfarras.png","language":"TypeScript","funding_links":[],"categories":["Integrations"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://nestjs.com/img/logo_text.svg\" width=\"150\" alt=\"Nest Logo\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch3 align=\"center\"\u003eNestJS Module for Firebase Admin SDK\u003c/h3\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://nestjs.com\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/built%20with-NestJs-red.svg\" alt=\"Built with NestJS\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n# Installation\n\n```bash\nnpm install @tfarras/nestjs-firebase-admin\n```\n\n## Import module\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport { FirebaseAdminModule } from '@tfarras/nestjs-firebase-admin'\nimport * as admin from 'firebase-admin'\n \n@Module({\n  imports: [\n    FirebaseAdminModule.forRootAsync({\n      useFactory: () =\u003e ({\n        credential: admin.credential.applicationDefault()\n      })\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\n# Example\n\n## Inject FirebaseAdminSDK\n\n```typescript\nimport { Injectable, Inject } from '@nestjs/common';\nimport { FIREBASE_ADMIN_INJECT, FirebaseAdminSDK } from '@tfarras/nestjs-firebase-admin';\n\n@Injectable()\nexport class AppService {\n  constructor(\n    @Inject(FIREBASE_ADMIN_INJECT) private firebaseAdmin: FirebaseAdminSDK,\n  ) {}\n\n  getUsers() {\n    return this.firebaseAdmin.auth().listUsers();\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfarras%2Fnestjs-firebase-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfarras%2Fnestjs-firebase-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfarras%2Fnestjs-firebase-admin/lists"}