Skip to content

Commit 0e3cf94

Browse files
committed
fix(auth, other): configureAuthDomain should only be called on native SDKs
this was causing an error to appear during Auth instance construction
1 parent d14a4f8 commit 0e3cf94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/auth/lib/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
isAndroid,
2121
isBoolean,
2222
isNull,
23+
isOther,
2324
isString,
2425
isValidUrl,
2526
} from '@react-native-firebase/app/lib/common';
@@ -127,7 +128,10 @@ class FirebaseAuthModule extends FirebaseModule {
127128
// but we need it in Auth if it exists. During app configuration we store
128129
// mappings from app name to authDomain, this auth constructor
129130
// is a reasonable time to use the mapping and set it into auth natively
130-
this.native.configureAuthDomain();
131+
if (!isOther) {
132+
// Only supported on native platforms
133+
this.native.configureAuthDomain();
134+
}
131135
}
132136

133137
get languageCode() {

0 commit comments

Comments
 (0)