Gathering detailed insights and metrics for react-firebase-auth-provider
Gathering detailed insights and metrics for react-firebase-auth-provider
Gathering detailed insights and metrics for react-firebase-auth-provider
Gathering detailed insights and metrics for react-firebase-auth-provider
ra-auth-firebase
Firebase auth provider for React Admin
react-hooks-firebase-auth
Library for easy handling of Firebase Authentication, complete with provider token related events
ra-auth-firebase-client
auth provider for react-admin framework
@brown-ccv/rn-auth-provider
Authentication Provider for apps using Firebase Authentication
npm install react-firebase-auth-provider
Typescript
Module System
JavaScript (98.38%)
HTML (1.62%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
6 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Nov 09, 2023
Latest Version
0.1.1
Package Id
react-firebase-auth-provider@0.1.1
Unpacked Size
13.77 kB
Size
3.10 kB
File Count
12
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
Easily integrate Firebase Authentication in your react(-native) app.
React Firebase Auth exports the following components :
Change PROJECT_NAME to your project name and grab your firebase config here : https://console.firebase.google.com/project/PROJECT_NAME/settings/general/
1// Firebase Config 2const config = { 3 apiKey: "API_KEY", 4 authDomain: "AUTH_DOMAIN", 5 projectId: "PROJECT_ID", 6 7 // OPTIONAL 8 databaseURL: "DATABASE_URL", 9 storageBucket: "STORAGE_BUCKET", 10 messagingSenderId: "MESSAGING_SENDER_ID" 11};
Place an AuthProvider Component anywhere in your component tree as an ancestor to any of the other react-firebase-auth-provider components and pass to it your firebase config.
1import firebase from "firebase/app"; 2import "firebase/auth"; 3import { 4 FirebaseAuthProvider, 5 IfFirebaseUnAuthed, 6 IfFirebaseAuthed, 7 FirebaseAuthConsumer, 8 IfFirebaseAuthedAnd 9} from "react-firebase-auth-provider"; 10 11const config = { 12 apiKey: "API_KEY", 13 authDomain: "AUTH_DOMAIN", 14 projectId: "PROJECT_ID", 15 16 // OPTIONAL 17 databaseURL: "DATABASE_URL", 18 storageBucket: "STORAGE_BUCKET", 19 messagingSenderId: "MESSAGING_SENDER_ID" 20}; 21 22const MyApp = () => { 23 return ( 24 <FirebaseAuthProvider {...config} firebase={firebase}> 25 <div> 26 <button 27 onClick={() => { 28 const googleAuthProvider = new firebase.auth.GoogleAuthProvider(); 29 firebase.auth().signInWithPopup(googleAuthProvider); 30 }} 31 > 32 Sign In with Google 33 </button> 34 <button 35 onClick={() => { 36 firebase.auth().signInAnonymously(); 37 }} 38 > 39 Sign In Anonymously 40 </button> 41 <button 42 onClick={() => { 43 firebase.auth().signOut(); 44 }} 45 > 46 Sign Out 47 </button> 48 <FirebaseAuthConsumer> 49 {({ isSignedIn, user, providerId }) => { 50 return ( 51 <pre style={{ height: 300, overflow: "auto" }}> 52 {JSON.stringify({ isSignedIn, user, providerId }, null, 2)} 53 </pre> 54 ); 55 }} 56 </FirebaseAuthConsumer> 57 <div> 58 <IfFirebaseAuthed> 59 {() => { 60 return <div>You are authenticated</div>; 61 }} 62 </IfFirebaseAuthed> 63 <IfFirebaseAuthedAnd 64 filter={({ providerId }) => providerId !== "anonymous"} 65 > 66 {({ providerId }) => { 67 return <div>You are authenticated with {providerId}</div>; 68 }} 69 </IfFirebaseAuthedAnd> 70 </div> 71 </div> 72 </FirebaseAuthProvider> 73 ); 74};
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
141 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More