useAuthEmulator method

  1. @override
Future<void> useAuthEmulator(
  1. String host,
  2. int port
)

Changes this instance to point to an Auth emulator running locally.

Set the host and port of the local emulator, such as "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> useAuthEmulator(String host, int port) async {
  try {
    await _delegate!.useAuthEmulator(host: host, port: port);

    return;
  } catch (e) {
    throw getFirebaseAuthException(e);
  }
}