{"id":19791672,"url":"https://github.com/solidstategroup/react-native-firebase-auth","last_synced_at":"2025-05-01T01:32:39.680Z","repository":{"id":57336987,"uuid":"70143585","full_name":"SolidStateGroup/react-native-firebase-auth","owner":"SolidStateGroup","description":"Simplified Firebase authentication for React Native projects with support for Facebook \u0026 Google login","archived":false,"fork":false,"pushed_at":"2017-08-30T08:58:47.000Z","size":16,"stargazers_count":148,"open_issues_count":1,"forks_count":27,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-09-18T12:52:01.092Z","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-06T10:21:12.000Z","updated_at":"2024-06-06T08:32:32.000Z","dependencies_parsed_at":"2022-09-12T09:51:43.503Z","dependency_job_id":null,"html_url":"https://github.com/SolidStateGroup/react-native-firebase-auth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-firebase-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-firebase-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-firebase-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolidStateGroup%2Freact-native-firebase-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolidStateGroup","download_url":"https://codeload.github.com/SolidStateGroup/react-native-firebase-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224231435,"owners_count":17277386,"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-11-12T07:04:23.629Z","updated_at":"2024-11-12T07:04:24.215Z","avatar_url":"https://github.com/SolidStateGroup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**This is the react-native implementation of https://github.com/SolidStateGroup/simple-firebase-auth**\n\n# React Native Firebase Auth\n\n[![Gitter](https://img.shields.io/gitter/room/gitterHQ/gitter.svg)](https://gitter.im/SolidStateGroup/react-native-firebase-auth?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nSimplified Firebase authentication for React Native projects 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\n## Installation\n\n```\n$ npm install --save react-native-firebase-auth\n```\n\n**Note:** If you use React Native \u003c `v0.39` or you are already using `react-native-google-signin` then stick with `v0.0.11` (`npm install react-native-firebase-auth@0.0.11 --save`)\n\n## Project Setup\n\n```\n$ npm install --save firebase react-native-facebook-login react-native-google-sign-in\n```\n\nYou will need fully setup both of the below social platform dependencies (react-native-google-sign-in and react-native-facebook-login).\n\nhttps://github.com/joonhocho/react-native-google-sign-in#getting-started\nhttps://github.com/magus/react-native-facebook-login#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## Usage\n\n```\nimport FireAuth from 'react-native-firebase-auth';\n\nconstructor(props) {\n  super(props);\n  FireAuth.init({iosClientId: \u003cIOS_CLIENT_ID\u003e}); // This is the CLIENT_ID found in your Google services plist.\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\nloginAnonymously = () =\u003e {\n  FireAuth.loginAnonymously();\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## Credits\n\nhttps://github.com/magus/react-native-facebook-login\n\nhttps://github.com/joonhocho/react-native-google-sign-in\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%2Freact-native-firebase-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidstategroup%2Freact-native-firebase-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstategroup%2Freact-native-firebase-auth/lists"}