{"id":49510646,"url":"https://github.com/piro0919/next-firebase-auth","last_synced_at":"2026-05-01T19:02:11.449Z","repository":{"id":51819537,"uuid":"520646618","full_name":"piro0919/next-firebase-auth","owner":"piro0919","description":"Easy integration between Next.js and Firebase Authentication","archived":false,"fork":false,"pushed_at":"2026-04-27T18:45:00.000Z","size":806,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T20:25:11.642Z","etag":null,"topics":["authentication","firebase","nextjs","react","template","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/piro0919.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-02T20:53:20.000Z","updated_at":"2026-04-26T21:35:52.000Z","dependencies_parsed_at":"2023-02-17T12:45:22.573Z","dependency_job_id":"bea6e0ff-ca8d-4fd2-bc22-94d74143b328","html_url":"https://github.com/piro0919/next-firebase-auth","commit_stats":{"total_commits":86,"total_committers":2,"mean_commits":43.0,"dds":0.06976744186046513,"last_synced_commit":"8c2c59efd85219021d34f442023dfbb510de3be2"},"previous_names":["piro0919/next-firebase-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/piro0919/next-firebase-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnext-firebase-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnext-firebase-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnext-firebase-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnext-firebase-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piro0919","download_url":"https://codeload.github.com/piro0919/next-firebase-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piro0919%2Fnext-firebase-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["authentication","firebase","nextjs","react","template","typescript"],"created_at":"2026-05-01T19:02:09.649Z","updated_at":"2026-05-01T19:02:11.440Z","avatar_url":"https://github.com/piro0919.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\n`next-firebase-authentication` makes it easy to connect Next.js to Firebase Authentication.\n\n## Example\n\n- [Source code](https://github.com/piro0919/next-firebase-authentication/tree/main/src/pages)\n\n## Getting Started\n\n### 1. Install\n\n```\nnpm i -S next-firebase-authentication\n```\n\n```\nyarn add next-firebase-authentication\n```\n\n### 2. Set environment variables\n\n```\nNEXT_PUBLIC_FIREBASE_API_KEY=\"...\"\nNEXT_PUBLIC_FIREBASE_APP_ID=\"...\"\nNEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=\"...\"\nNEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=\"...\"\nNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=\"...\"\nNEXT_PUBLIC_FIREBASE_PROJECT_ID=\"...\"\nNEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=\"...\"\n```\n\nIf you want to verify id token, add the following environment variables.\n\n```\nFIREBASE_CLIENT_EMAIL=\"...\"\nFIREBASE_PRIVATE_KEY=\"...\"\nFIREBASE_PROJECT_ID=\"...\"\n```\n\n### 3. Initialize Firebase Authentication with `App` component\n\n`_app.tsx`\n\n```tsx\nimport { useInitAuth } from \"next-firebase-authentication\";\nimport type { AppProps } from \"next/app\";\n\nfunction MyApp({ Component, pageProps }: AppProps): JSX.Element {\n  useInitAuth();\n\n  return \u003cComponent {...pageProps} /\u003e;\n}\n\nexport default MyApp;\n```\n\n## Reference\n\n### useInitAuth\n\nInitialize Firebase Authentication.\n\nMake sure to call it only once with `App` component.\n\n- isSignedIn: boolean\n- userCredential?: object\n\n### useSignIn\n\nIt's hooks about signing in.\n\n- signInWithFacebook: function\n- signInWithGoogle: function\n- signInWithTwitter: function\n\n### useSignOut\n\nIt's hooks about signing out.\n\n- isSignedOut: boolean\n- signOut: function\n\n### useUser\n\nIt's hooks about user.\n\n- error: Error\n- isLoading: boolean\n- user: object\n\n### verifyIdToken\n\nIt is a function that does verify for id token.\n\nCan be used with `getServerSideProps` and `api`.\n\nIt is also possible to use indirectly from `middleware`.\n\nPlease write as follows when using.\n\n```tsx\nimport { verifyIdToken } from \"next-firebase-authentication/dist/verifyIdToken\";\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiro0919%2Fnext-firebase-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiro0919%2Fnext-firebase-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiro0919%2Fnext-firebase-auth/lists"}