Skip to main content

Module mode

Module mode 

Source
Expand description

Runtime live/emulator mode selection.

Unlike an approach that makes the client generic over a credentials or mode type (which forces every method signature to diverge between live and emulator variants), ClientMode is a plain runtime value. Every crate::auth::AuthClient method is defined exactly once and branches internally on self.mode only where behavior genuinely differs.

Enums§

ClientMode
Selects whether an crate::auth::AuthClient talks to production Firebase or a local emulator instance.

Constants§

EMULATOR_HOST_ENV_VAR
The environment variable Firebase’s own SDKs use to auto-detect a running Auth Emulator.