This repository contains a collection of Firebase functions snippets for various tasks.
|Create a new user with email and password.
|Log in an existing user with email and password.
|Log out the currently authenticated user.
|Send a password reset email to the specified email address.
|Sign in with Google provider.
|Create an authentication context for React applications.
|Restrict access to authenticated users for React applications.
|Format Firebase error message.
|Firebase configuration object.
|Initialize Firebase app and get authentication and Firestore instances.
|Add new document to a collection in Firestore.
|Get/Read Data Unique
|Get data from a document with a specific ID in Firestore.
|Get/Read Data All
|Get data from all documents in a collection in Firestore.
|Get Data with Condition/Query
|Get data from Firestore with a query condition.
|Delete all data
|Delete all documents from a collection in Firestore.
|Delete Data with Condition/Query
|Delete documents from Firestore with a query condition.
|Delete Data Unique
|Delete a document with a specific ID from a collection in Firestore.
|Upload a file in firebase bucket and get back the url + ref
|Delete file from storage with ref
To use these snippets, copy the provided code and paste it into your project where needed. Ensure that you have the Firebase SDK installed and configured in your project.