Skip to content

Lascade-Co/firebase-user-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase User Importer

This project is a Node.js script that allows you to import user data from Firebase Authentication using the Firebase Admin SDK.

Prerequisites

Before running this script, make sure you have completed the following steps:

  1. Download the Firebase Admin SDK service account key from the Firebase console.
  2. Save the service account key JSON file to a secure location in your project directory.

Dependencies

To install the necessary dependencies, follow these steps:

  1. If you don't have npm installed, you can install it by running the following command in your terminal:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Next install Node.js by running the following command in your terminal:

    brew install node

Installation

Clone this repository to your local machine and install the required dependencies by running the following command:

npm install

Configuration

Assign variable serviceAccount with the service account key JSON file path in the index.js file.

const serviceAccount = require('path/to/serviceAccountKey.json');

Run the script

To run the script, use the following command:

npm start

Result

The script will import the user Authentication data from Firebase to the outputfile variable value in the root directory of the project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published