1.0.4 • Published 2 years ago
react-fire-utils v1.0.4
react-fire-utils provides a simple way to integrate firebase authentication in your app. After installing the package and configuring Firebase, it automatically creates a login/signup . You don't need to manually set up , It handles everything for you.
Getting Started
To create a new React app with Vite and Tailwind CSS, you can use the following commands:
npm create vite@latest my-app -- --template react
cd my-app
npm installInstallation
npm install react-fire-utilsCreate a Firebase project and grab the project configurations.
Create a .env file in your project directory and add your Firebase configuration:
FIREBASE_API_KEY=
FIREBASE_AUTH_DOMAIN=
FIREBASE_PROJECT_ID=
FIREBASE_STORAGE_BUCKET=
FIREBASE_MESSAGING_SENDER_ID=
FIREBASE_APP_ID=Then create authentication using react-fire-utils
react-fire-utils create-authNavigation
You can navigate to follwing routes to handle user authentication flows.
/signup
/login
/signout