{"id":17359575,"url":"https://github.com/marcomelilli/gatsby-firebase-simple-auth","last_synced_at":"2025-04-14T23:31:58.680Z","repository":{"id":42001687,"uuid":"225139569","full_name":"marcomelilli/gatsby-firebase-simple-auth","owner":"marcomelilli","description":"Gatsby Starter with Firebase simple auth workflow and private routes","archived":false,"fork":false,"pushed_at":"2024-02-28T09:32:41.000Z","size":4730,"stargazers_count":63,"open_issues_count":11,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T12:21:14.257Z","etag":null,"topics":["firebase","firebase-auth","gatsby","gatsby-firebase","gatsby-starter"],"latest_commit_sha":null,"homepage":"https://gatsby-firebase-simple-auth.netlify.com/","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/marcomelilli.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}},"created_at":"2019-12-01T09:58:23.000Z","updated_at":"2024-04-30T03:55:46.000Z","dependencies_parsed_at":"2023-02-15T08:45:47.751Z","dependency_job_id":null,"html_url":"https://github.com/marcomelilli/gatsby-firebase-simple-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomelilli%2Fgatsby-firebase-simple-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomelilli%2Fgatsby-firebase-simple-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomelilli%2Fgatsby-firebase-simple-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomelilli%2Fgatsby-firebase-simple-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcomelilli","download_url":"https://codeload.github.com/marcomelilli/gatsby-firebase-simple-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248978903,"owners_count":21192871,"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-auth","gatsby","gatsby-firebase","gatsby-starter"],"created_at":"2024-10-15T19:10:05.713Z","updated_at":"2025-04-14T23:31:58.354Z","avatar_url":"https://github.com/marcomelilli.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/marcomelilli","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"static/gatsby-firebase-logo.png\" alt=\"Logo\" width='70%' height='auto'/\u003e\n\u003c/div\u003e\n\n# Gatsby Firebase Authentication Starter\n\nThis is a gatsby starter to show how an **authentication workflow** is implemented in Gatsby using [Firebase](https://firebase.google.com/) as authentication provider.\n\nThis starter follows the best practices described in the official gatsby site: \n* [Client-only Routes](https://www.gatsbyjs.org/docs/client-only-routes-and-user-authentication/) doc\n* [User Authentication](https://www.gatsbyjs.org/tutorial/authentication-tutorial/) tutorial\n\nIt uses [Gatsby Plugin Create Client Path](https://www.gatsbyjs.org/packages/gatsby-plugin-create-client-paths) to set private routes.\n\nHow it works in short:\n- Gatsby renders all unauthenticated routes as usual static pages.\n- Authenticated routes are whitelisted as client-only (in this starter all dynamic pages are under the path 'mysite.com/app/*').\n- Logged-out users are redirected to the login page if they attempt to visit private routes.\n- Logged-in users will see their private content.\n\n# Getting started with Firebase\n\nCopy and rename `.env.sample` to `.env.development` and `.env.production` in your root directory. Use these environment variables for Firebase:\n\n```\nFIREBASE_API_KEY=\u003cYOUR_FIREBASE_API_KEY\u003e\nFIREBASE_AUTH_DOMAIN=\u003cYOUR_FIREBASE_AUTH_DOMAIN\u003e\nFIREBASE_DATABASE_URL=\u003cYOUR_FIREBASE_DATABASE_URL\u003e\nFIREBASE_PROJECT_ID=\u003cYOUR_FIREBASE_PROJECT_ID\u003e\nFIREBASE_STORAGE_BUCKET=\u003cYOUR_FIREBASE_STORAGE_BUCKET\u003e\nFIREBASE_MESSAGING_SENDER_ID=\u003cYOUR_FIREBASE_MESSAGING_SENDER_ID\u003e\nFIREBASE_APP_ID=\u003cYOUR_FIREBASE_APP_ID\u003e\n```\n\n- Get your Firebase environment variables by [creating a Firebase project](https://firebase.google.com/docs/web/setup)\n- More information about [how Firebase works in a website](https://firebase.google.com/docs/projects/learn-more)\n- Features of [Firebase authentication](https://firebase.google.com/docs/auth)\n- Note that environment variables that need to be available in the browser [have to be prefixed](https://www.gatsbyjs.com/docs/environment-variables/#client-side-javascript) with `GATSBY_`\n\n# Start developing\n\n```\nnpm install\ngatsby develop \n```\n\n# Contributing\nIf you want to contribute to this starter, consider:\n\n- Reporting bugs and errors\n- Improve the documentation\n- Creating new features and pull requests\n\n\u003ca href=\"https://www.buymeacoffee.com/marcomelilli\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=\u0026slug=marcomelilli\u0026button_colour=FF5F5F\u0026font_colour=ffffff\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=FFDD00\"\u003e\u003c/a\u003e\n\nAll contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcomelilli%2Fgatsby-firebase-simple-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcomelilli%2Fgatsby-firebase-simple-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcomelilli%2Fgatsby-firebase-simple-auth/lists"}