@react-native-firebase/auth 23.1.0 → 23.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/index.js +9 -10
- package/lib/version.js +1 -1
- package/lib/web/RNFBAuthModule.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [23.1.1](https://github.com/invertase/react-native-firebase/compare/v23.1.0...v23.1.1) (2025-08-22)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **auth, other:** configureAuthDomain should only be called on native SDKs ([0e3cf94](https://github.com/invertase/react-native-firebase/commit/0e3cf94e81b093d0b853d0da2756f2713e7be6ce))
|
11
|
+
- **auth, other:** correctly detect persistence set or not ([b86b7e3](https://github.com/invertase/react-native-firebase/commit/b86b7e345a72dc7e3dd20068c8dd74b4092ce6a9))
|
12
|
+
- validate listenerOrObserver callbacks in auth, app-check, remote-config ([06dcae4](https://github.com/invertase/react-native-firebase/commit/06dcae44e29f18e7716727479fd6e6d048336d91))
|
13
|
+
|
6
14
|
## [23.1.0](https://github.com/invertase/react-native-firebase/compare/v23.0.1...v23.1.0) (2025-08-19)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @react-native-firebase/auth
|
package/lib/index.js
CHANGED
@@ -20,8 +20,10 @@ import {
|
|
20
20
|
isAndroid,
|
21
21
|
isBoolean,
|
22
22
|
isNull,
|
23
|
+
isOther,
|
23
24
|
isString,
|
24
25
|
isValidUrl,
|
26
|
+
parseListenerOrObserver,
|
25
27
|
} from '@react-native-firebase/app/lib/common';
|
26
28
|
import { setReactNativeModule } from '@react-native-firebase/app/lib/internal/nativeModule';
|
27
29
|
import {
|
@@ -127,7 +129,10 @@ class FirebaseAuthModule extends FirebaseModule {
|
|
127
129
|
// but we need it in Auth if it exists. During app configuration we store
|
128
130
|
// mappings from app name to authDomain, this auth constructor
|
129
131
|
// is a reasonable time to use the mapping and set it into auth natively
|
130
|
-
|
132
|
+
if (!isOther) {
|
133
|
+
// Only supported on native platforms
|
134
|
+
this.native.configureAuthDomain();
|
135
|
+
}
|
131
136
|
}
|
132
137
|
|
133
138
|
get languageCode() {
|
@@ -221,14 +226,8 @@ class FirebaseAuthModule extends FirebaseModule {
|
|
221
226
|
await this.native.setTenantId(tenantId);
|
222
227
|
}
|
223
228
|
|
224
|
-
_parseListener(listenerOrObserver) {
|
225
|
-
return typeof listenerOrObserver === 'object'
|
226
|
-
? listenerOrObserver.next.bind(listenerOrObserver)
|
227
|
-
: listenerOrObserver;
|
228
|
-
}
|
229
|
-
|
230
229
|
onAuthStateChanged(listenerOrObserver) {
|
231
|
-
const listener =
|
230
|
+
const listener = parseListenerOrObserver(listenerOrObserver);
|
232
231
|
const subscription = this.emitter.addListener(
|
233
232
|
this.eventNameForApp('onAuthStateChanged'),
|
234
233
|
listener,
|
@@ -243,7 +242,7 @@ class FirebaseAuthModule extends FirebaseModule {
|
|
243
242
|
}
|
244
243
|
|
245
244
|
onIdTokenChanged(listenerOrObserver) {
|
246
|
-
const listener =
|
245
|
+
const listener = parseListenerOrObserver(listenerOrObserver);
|
247
246
|
const subscription = this.emitter.addListener(
|
248
247
|
this.eventNameForApp('onIdTokenChanged'),
|
249
248
|
listener,
|
@@ -258,7 +257,7 @@ class FirebaseAuthModule extends FirebaseModule {
|
|
258
257
|
}
|
259
258
|
|
260
259
|
onUserChanged(listenerOrObserver) {
|
261
|
-
const listener =
|
260
|
+
const listener = parseListenerOrObserver(listenerOrObserver);
|
262
261
|
const subscription = this.emitter.addListener(this.eventNameForApp('onUserChanged'), listener);
|
263
262
|
if (this._authResult) {
|
264
263
|
Promise.resolve().then(() => {
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '23.1.
|
2
|
+
module.exports = '23.1.1';
|
@@ -227,7 +227,7 @@ let sessionId = 0;
|
|
227
227
|
// Returns a cached Firestore instance.
|
228
228
|
function getCachedAuthInstance(appName) {
|
229
229
|
if (!instances[appName]) {
|
230
|
-
if (
|
230
|
+
if (isMemoryStorage()) {
|
231
231
|
// Warn auth persistence is is disabled unless Async Storage implementation is provided.
|
232
232
|
// eslint-disable-next-line no-console
|
233
233
|
console.warn(
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/auth",
|
3
|
-
"version": "23.1.
|
3
|
+
"version": "23.1.1",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.",
|
6
6
|
"main": "lib/index.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"plist": "^3.1.0"
|
28
28
|
},
|
29
29
|
"peerDependencies": {
|
30
|
-
"@react-native-firebase/app": "23.1.
|
30
|
+
"@react-native-firebase/app": "23.1.1",
|
31
31
|
"expo": ">=47.0.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -43,5 +43,5 @@
|
|
43
43
|
"access": "public",
|
44
44
|
"provenance": true
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "1cdb412427e0c909ede08f5fed5c6b512e9fb5d5"
|
47
47
|
}
|