New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hadx/firebase

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hadx/firebase

@hadx/firebase

0.0.4
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Hadex Firebase

Getting started

  • Create a new project on firebase console (ex: MyApp)

  • Create Firestore database with Rules

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth != null;
    }
  }
}
  • Enable Email/Password Authentication and add a new user, note down the email and password
  • Install this package
yarn add @hadx/firebase
  • Add a Web App to the project
  • Copy and save the firebaseConfig part to your code

Usage

import Firebase from '@hadx/firebase';

const auth = {email: ..., password: ...} // create above (step 3)
const config = {...}; // copied above (step 6)
Firebase.initialize(config, auth, 'myApp');

FAQs

Package last updated on 02 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts