useEmulator method
Changes this instance to point to an Auth emulator running locally.
Set the host
and port
of the local emulator, such as "http://localhost"
with port 9099
Note: Must be called immediately, prior to accessing auth methods. Do not use with production credentials as emulator traffic is not encrypted.
Implementation
@override
Future<void> useEmulator(String host, int port) async {
try {
// The generic platform interface is with host and port split to
// centralize logic between android/ios native, but web takes the
// origin as a single string
_webAuth!.useEmulator('http://$host:$port');
} catch (e) {
throw getFirebaseAuthException(e);
}
}