File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/auth/src/core/auth Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { Auth } from '../../model/public_types';
18
18
import { AuthErrorCode } from '../errors' ;
19
19
import { _assert } from '../util/assert' ;
20
20
import { _castAuth } from './auth_impl' ;
21
+ import { deepEqual } from '@firebase/util' ;
21
22
22
23
/**
23
24
* Changes the {@link Auth} instance to communicate with the Firebase Auth Emulator, instead of production
@@ -70,10 +71,8 @@ export function connectAuthEmulator(
70
71
71
72
if ( ! authInternal . _canInitEmulator ) {
72
73
_assert (
73
- JSON . stringify ( emulator ) ===
74
- JSON . stringify ( authInternal . config . emulator ) &&
75
- JSON . stringify ( emulatorConfig ) ===
76
- JSON . stringify ( authInternal . emulatorConfig ) ,
74
+ deepEqual ( emulator , authInternal . config . emulator || { } ) &&
75
+ deepEqual ( emulatorConfig , authInternal . emulatorConfig || { } ) ,
77
76
authInternal ,
78
77
AuthErrorCode . EMULATOR_CONFIG_FAILED
79
78
) ;
You can’t perform that action at this time.
0 commit comments