Emulate Users

The same way you can emulate Firestore database for your development you can also emulate Firebase Auth users. This is accomplished through the users field inside the configuration file.

You have two options on how to set the emulated users:

Specify users directly with JSON:


                            
users:

                            
- id: user-id-1

                            
# The 'data' field takes a JSON string

                            
data: '{"email": ""}'

                          

Copy users from your production Firebase Auth users


                            
users:

                            
- getFromProd: [user-id-1, user-id-2]

                            
# If the value is a number, Foundry takes first N users from Firebase Auth

                            
- getFromProd: 2