================================================
The Auth Blocking functions Quickstart demonstrates how to block account sign in and creation when using Firebase Auth or Google Cloud Identity Platform in a Firebase App.
To try this sample, you need a test app with Firebase Auth and Cloud Firestore enabled. Don't use a live app with real users!
- Install dependencies with
npm install
- Deploy the functions with
firebase deploy --only functions
- Try to create an account using an email address with a domain other than
@acme.com
. It should fail. - Add an existing user's email address to the
banned
collection in Cloud Firestore. Then, try to sign in as that user. It should fail.
© Google, 2022. Licensed under an Apache-2 license.