Connect Emulator
Use the connectAuthEmulator
method to connect the Firebase Authentication instance to a local emulator for testing purposes.
Method
Parameters
host (
String
): The host address of the local emulator (e.g.,'localhost'
).port (
int
): The port number of the local emulator.
Return
void: This method does not return a value.
This method connects your Firebase Authentication instance to the local emulator, enabling you to test authentication flows without impacting production data.
Last updated