cp .env.example .env
- Get firebase SDK config for javascript, convert to JSON format and save as
firebase-config.json
in folder credentials - Open firebase console Firebase Authentication, at tab
Sign-in providers
and enable Phone provider
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]
npm install
npm run server
Open showed URL in CLI and check.