Skip to content

danh20051995/demo-firebase-phone-verify

Repository files navigation

FIREBASE PHONE VERIFY EXAMPLE

Prerequisites

Copy .env.example to .env

cp .env.example .env

Create firebase app

Firebase SDK config

Config reCAPTCHA and GOOGLE_API_KEY in .env

Create your reCAPTCHA and insert key + secret into .env

RE_CAPTCHA_KEY=[your-reCAPTCHA-key]
RE_CAPTCHA_SECRET=[your-reCAPTCHA-secret]

Open google cloud, select app has the same name with your firebase app and create new API Keys, if set API restrictions you must enable Identity Toolkit API

Update GOOGLE_API_KEY in .env with your new API key

GOOGLE_API_KEY=[your-google-API-key]

Execute below command

Install node_modules

npm install

Start node http server

npm run server

Open showed URL in CLI and check.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published