{"id":19388918,"url":"https://github.com/james2doyle/nuxt-firebase-auth","last_synced_at":"2026-03-09T20:03:12.294Z","repository":{"id":145775326,"uuid":"113953820","full_name":"james2doyle/nuxt-firebase-auth","owner":"james2doyle","description":"An example of using Nuxt with Firebase to auth users without a server","archived":false,"fork":false,"pushed_at":"2020-09-28T16:19:17.000Z","size":1302,"stargazers_count":117,"open_issues_count":4,"forks_count":28,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-23T23:39:17.101Z","etag":null,"topics":["firebase","nuxt","vuejs"],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/james2doyle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-12-12T06:45:21.000Z","updated_at":"2025-02-06T03:26:17.000Z","dependencies_parsed_at":"2023-06-02T01:00:25.071Z","dependency_job_id":null,"html_url":"https://github.com/james2doyle/nuxt-firebase-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/james2doyle/nuxt-firebase-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fnuxt-firebase-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fnuxt-firebase-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fnuxt-firebase-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fnuxt-firebase-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/nuxt-firebase-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fnuxt-firebase-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30310000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["firebase","nuxt","vuejs"],"created_at":"2024-11-10T10:14:02.746Z","updated_at":"2026-03-09T20:03:12.286Z","avatar_url":"https://github.com/james2doyle.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nuxt Firebase Auth\n\n\u003e An example of using Nuxt with Firebase to auth users without a server\n\nThe goal of this project is to make it really easy to generate an application that has Firebase (authentication + user account management) setup out-of-the-box.\n\n_My personal goal with the project is to allow me to create some simple PAAS apps without having to setup auth + Firebase every time._\n\n## Firebase Setup\n\nCreate a `firebase.js` file in the root of the project. It will look something like this:\n\n```js\nmodule.exports = {\n  'apiKey': 'info-from-firebase-web-instructions',\n  'authDomain': 'info-from-firebase-web-instructions',\n  'databaseURL': 'info-from-firebase-web-instructions',\n  'projectId': 'info-from-firebase-web-instructions',\n  'storageBucket': 'info-from-firebase-web-instructions',\n  'messagingSenderId': 'info-from-firebase-web-instructions'\n}\n```\n\n#### Rules\n\nIn order to keep other users from writing to paths they don't own, we need to add some rules to the database:\n\n```json\n{\n  \"rules\": {\n    \"accounts\": {\n      \"$uid\": {\n        \".read\": \"$uid === auth.uid\",\n        \".write\": \"$uid === auth.uid\"\n      }\n    }\n  }\n}\n```\n\n#### Social Logins\n\nI have setup social login for Google and Github. You will need to login to your Firebase console and enable those signin methods. Google will work out-of-the-box with any Firebase app. But you will need to create a new oAuth application if you would like to use Github signin.\n\n## Build Setup\n\n``` bash\n# install dependencies\n$ npm install # Or yarn install\n\n# serve with hot reload at localhost:3000\n$ npm run dev\n\n# build for production and launch server\n$ npm run build\n$ npm start\n\n# generate static project\n$ npm run generate\n```\n\nFor detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).\n\n### Demo GIF\n\n![nuxt firebase auth preview image](/preview.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fnuxt-firebase-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fnuxt-firebase-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fnuxt-firebase-auth/lists"}