Skip to content

Commit d758208

Browse files
committed
Use deepEqual()
1 parent c4fd081 commit d758208

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages-exp/auth-exp/src/core/auth/initialize.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,7 @@ export function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth {
5656
if (provider.isInitialized()) {
5757
const auth = provider.getImmediate() as AuthImpl;
5858
const initialOptions = provider.getOptions() as Dependencies;
59-
if (
60-
initialOptions.errorMap === deps?.errorMap &&
61-
initialOptions.popupRedirectResolver === deps?.popupRedirectResolver &&
62-
deepEqual(
63-
initialOptions.persistence as object,
64-
deps?.persistence as object
65-
)
66-
) {
59+
if (deepEqual(initialOptions, deps ?? {})) {
6760
return auth;
6861
} else {
6962
_fail(auth, AuthErrorCode.ALREADY_INITIALIZED);

0 commit comments

Comments
 (0)