Gathering detailed insights and metrics for ra-auth-firebase
Gathering detailed insights and metrics for ra-auth-firebase
Gathering detailed insights and metrics for ra-auth-firebase
Gathering detailed insights and metrics for ra-auth-firebase
npm install ra-auth-firebase
Typescript
Module System
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
13 Stars
11 Commits
2 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Jan 28, 2023
Latest Version
1.0.2
Package Id
ra-auth-firebase@1.0.2
Unpacked Size
54.84 kB
Size
9.66 kB
File Count
15
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
Firebase auth provider for React Admin
A Firebase auth provider for react-admin. Based on aor-firebase-client, modified and maintained to own preferences.
This project uses node and npm. Ensure that firebase and react-admin is installed.
1$ npm install ra-auth-firebase 2$ # OR 3$ yarn add ra-auth-firebase
1import React, { Component } from 'react' 2import { Admin, Resource } from 'react-admin' 3import firebase from 'firebase' 4 5import Login from './login' 6import Dashboard from './dashboard' 7 8import Store from '@material-ui/icons/Store' 9import { AssetsCreate, AssetsEdit, AssetsList } from './assets' 10 11import { FirebaseAuthProvider } from 'ra-auth-firebase' 12 13const firebaseConfig = 14 { 15 // Firebase config used to create additional app to create users (HACK) 16 apiKey: '########################################', 17 authDomain: '########################################', 18 databaseURL: '########################################', 19 projectId: '########################################', 20 storageBucket: '########################################' 21 } 22 23const providerConfig = { 24 admin: { 25 path: '/people/', 26 validate: (user) => user.isAdmin && user.isEmployee // Validate that user may sign in (default () => true) 27 }, 28 keys: { 29 // Keys for local storage 30 permissions: 'user', 31 token: 'firebase' 32 } 33} 34 35// Ensure firebase is initialized first 36firebase.initializeApp(firebaseConfig) 37 38class App extends Component { 39 render () { 40 return <Admin 41 title='Demo' 42 loginPage={Login} 43 dashboard={Dashboard} 44 authProvider={FirebaseAuthProvider(providerConfig)} 45 > 46 <Resource 47 icon={Store} 48 options={{ label: 'Assets' }} 49 name='assets' 50 list={AssetsList} 51 edit={AssetsEdit} 52 create={AssetsCreate} 53 /> 54 </Admin> 55 } 56} 57 58export default App 59
See
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
project is archived
Details
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
47 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