Skip to content

HORNOTZ/firebase-phone-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Phone Auth 📱🔒

Firebase Phone Auth
Releases

Welcome to the Firebase Phone Auth repository! This project provides a basic setup for phone verification using Firebase. It features simple HTML, CSS, and JavaScript to help you get started with Firebase authentication.

Table of Contents

Introduction

Firebase is a powerful platform that helps developers build and manage applications. One of its key features is authentication, which allows users to sign in using various methods, including phone numbers. This repository offers a beginner-friendly example of how to set up phone number verification.

By following this guide, you will learn how to implement Firebase phone authentication in your web application.

Features

  • Easy setup with Firebase
  • Simple HTML/CSS/JS code structure
  • Beginner-friendly example
  • Responsive design
  • Secure phone number verification
  • Supports OTP (One Time Password) verification

Installation

To get started, clone this repository to your local machine:

git clone https://github.com/HORNOTZ/firebase-phone-auth.git

After cloning, navigate to the project directory:

cd firebase-phone-auth

Next, open the index.html file in your favorite text editor. You will need to set up Firebase in your project. Follow these steps:

  1. Go to the Firebase Console.
  2. Create a new project or select an existing one.
  3. Navigate to the "Authentication" section.
  4. Enable phone authentication.
  5. Add your web app to the Firebase project and copy the configuration code.
  6. Replace the placeholder in index.html with your Firebase configuration.

Once you have completed these steps, you can start using the project.

Usage

To run the project, open the index.html file in your web browser. You should see a simple interface that allows users to enter their phone number for verification.

Steps to Verify a Phone Number

  1. Enter your phone number in the input field.
  2. Click the "Send OTP" button.
  3. You will receive an OTP on your phone.
  4. Enter the OTP in the provided field and click "Verify."

If the OTP is correct, you will be successfully authenticated!

For more details, check the Releases section for updates and new features.

Contributing

We welcome contributions to this project! If you want to help, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your forked repository.
  5. Create a pull request.

Your contributions help improve this project and make it better for everyone.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as you wish.

Contact

If you have any questions or suggestions, feel free to reach out:

Thank you for checking out the Firebase Phone Auth repository! We hope you find it useful for your projects. For more information, visit the Releases section. Happy coding!