{"id":15294810,"url":"https://github.com/solidstategroup/simple-firebase-auth","last_synced_at":"2025-04-13T14:54:17.350Z","repository":{"id":57360133,"uuid":"70159425","full_name":"SolidStateGroup/simple-firebase-auth","owner":"SolidStateGroup","description":"Simplified Firebase authentication for web with support for Facebook \u0026 Google login","archived":false,"fork":false,"pushed_at":"2017-04-21T09:20:42.000Z","size":124,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T14:54:12.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/SolidStateGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-10-06T14:02:02.000Z","updated_at":"2020-04-14T06:19:38.000Z","dependencies_parsed_at":"2022-09-06T21:41:27.102Z","dependency_job_id":null,"html_url":"https://github.com/SolidStateGroup/simple-firebase-auth","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/SolidStateGroup%2Fsimple-firebase-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Fsimple-firebase-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Fsimple-firebase-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Fsimple-firebase-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolidStateGroup","download_url":"https://codeload.github.com/SolidStateGroup/simple-firebase-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732512,"owners_count":21152851,"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-09-30T17:07:09.095Z","updated_at":"2025-04-13T14:54:17.329Z","avatar_url":"https://github.com/SolidStateGroup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Firebase Auth\n\n[![Join the chat at https://gitter.im/SolidStateGroup/simple-firebase-auth](https://badges.gitter.im/SolidStateGroup/simple-firebase-auth.svg)](https://gitter.im/SolidStateGroup/simple-firebase-auth?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n**For react-native check out https://github.com/SolidStateGroup/react-native-firebase-auth**\n\nSimplified Firebase authentication for web with support for Facebook \u0026 Google login. \n\nUsing this module alongside Firebase means there is no need to write and host any backend code to handle users logging in to your app.\n\nUse our project starter repository (https://github.com/SolidStateGroup/firebase-project-starter) to help you get started setting up your own Firebase project.\n\n## Install\n```\n$ npm install --save firebase simple-firebase-auth\n```\n\n## Project Setup\n\nYou will need to initialise Firebase within your app in the usual way. See https://firebase.google.com/docs/web/setup\n\n## Example Usage (with React)\n\n```\nimport FireAuth from 'simple-firebase-auth';\n\nconstructor(props) {\n  super(props);\n  FireAuth.init({\n    fbAppId: \"\u003cFACEBOOK_APP_ID\u003e\",\n    webClientId: \"\u003cFIREBASE_WEB_CLIENT_ID\u003e\",\n    apiKey: \"\u003cFIREBASE_API_KEY\u003e\"\n  });\n}\n\ncomponentDidMount() {\n  FireAuth.setup(this.onLogin, this.onUserChange, this.onLogout, this.emailVerified, this.onError);\n}\n\nregister = () =\u003e {\n  const { email, password, firstName, lastName } = this.state;\n  FireAuth.register(email, password, { firstName, lastName });\n}\n\nlogin = () =\u003e {\n  FireAuth.login(this.state.email, this.state.password);\n}\n\nfacebookLogin() {\n  FireAuth.facebookLogin();\n}\n\ngoogleLogin() {\n  FireAuth.googleLogin();\n}\n\nlogout() {\n  FireAuth.logout();\n}\n\nupdate () =\u003e {\n  FireAuth.update({\n    firstName: this.state.firstName,\n    lastName: this.state.lastName\n  }).then(() =\u003e {\n    ...\n  }).catch(err =\u003e {\n    ...\n  });\n}\n\nresetPassword () =\u003e {\n  FireAuth.resetPassword(this.state.email)\n    .then(() =\u003e {\n      ...\n    })\n    .catch(err =\u003e {\n      ...\n    });\n}\n\nupdatePassword () =\u003e {\n  FireAuth.updatePassword(this.state.password)\n    .then(() =\u003e {\n      ...\n    })\n    .catch(err =\u003e {\n      ...\n    });\n}\n\n```\n\n# Getting Help\nIf you encounter a bug or feature request we would like to hear about it. Before you submit an issue please search existing issues in order to prevent duplicates. \n\n# Contributing\nFor more information about contributing PRs, please see our \u003ca href=\"CONTRIBUTING.md\"\u003eContribution Guidelines\u003c/a\u003e.\n\n\n# Get in touch\nIf you have any questions about our projects you can email \u003ca href=\"mailto:projects@solidstategroup.com\"\u003eprojects@solidstategroup.com\u003c/a\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstategroup%2Fsimple-firebase-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidstategroup%2Fsimple-firebase-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstategroup%2Fsimple-firebase-auth/lists"}