@firebase/auth 1.12.2 → 1.13.0-20260408201731
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/dist/browser-cjs/{index-e6fab08e.js → index-eb16a0d1.js} +2 -2
- package/dist/browser-cjs/{index-e6fab08e.js.map → index-eb16a0d1.js.map} +1 -1
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-5ec7b405.js → popup_redirect-8d67604d.js} +2 -2
- package/dist/cordova/{popup_redirect-5ec7b405.js.map → popup_redirect-8d67604d.js.map} +1 -1
- package/dist/cordova/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/esm/{index-dfb5c973.js → index-40752d96.js} +2 -2
- package/dist/esm/{index-dfb5c973.js.map → index-40752d96.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal.js +2 -2
- package/dist/esm/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/index.webworker.js +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/node/{totp-a5322a96.js → totp-929d8284.js} +2 -2
- package/dist/node/{totp-a5322a96.js.map → totp-929d8284.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/node-esm/{totp-ed01b91b.js → totp-c0564291.js} +2 -2
- package/dist/node-esm/{totp-ed01b91b.js.map → totp-c0564291.js.map} +1 -1
- package/dist/rn/{index-e23bd279.js → index-446db0d6.js} +2 -2
- package/dist/rn/{index-e23bd279.js.map → index-446db0d6.js.map} +1 -1
- package/dist/rn/index.js +34 -3
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +1 -1
- package/dist/web-extension-cjs/{register-a20238ea.js → register-4a6573e8.js} +2 -2
- package/dist/web-extension-cjs/{register-a20238ea.js.map → register-4a6573e8.js.map} +1 -1
- package/dist/web-extension-cjs/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/dist/web-extension-esm/index.js +2 -2
- package/dist/web-extension-esm/internal.js +2 -2
- package/dist/web-extension-esm/{register-27e07cc8.js → register-9bf52823.js} +2 -2
- package/dist/web-extension-esm/{register-27e07cc8.js.map → register-9bf52823.js.map} +1 -1
- package/dist/web-extension-esm/src/platform_react_native/persistence/react_native.d.ts +20 -1
- package/package.json +2 -2
|
@@ -17,9 +17,28 @@
|
|
|
17
17
|
import { Persistence, ReactNativeAsyncStorage } from '../../model/public_types';
|
|
18
18
|
/**
|
|
19
19
|
* Returns a persistence object that wraps `AsyncStorage` imported from
|
|
20
|
-
* `react-native` or `@react-native-
|
|
20
|
+
* `react-native` or `@react-native-async-storage/async-storage`, and can
|
|
21
21
|
* be used in the persistence dependency field in {@link initializeAuth}.
|
|
22
22
|
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```javascript
|
|
25
|
+
* import { initializeAuth, getReactNativePersistence } from 'firebase/auth';
|
|
26
|
+
*
|
|
27
|
+
* // For @react-native-async-storage/async-storage v3:
|
|
28
|
+
* import { createAsyncStorage } from '@react-native-async-storage/async-storage';
|
|
29
|
+
* const appStorage = createAsyncStorage('app');
|
|
30
|
+
* const persistence = getReactNativePersistence(appStorage);
|
|
31
|
+
*
|
|
32
|
+
* // For @react-native-async-storage/async-storage v2:
|
|
33
|
+
* // import ReactNativeAsyncStorage from '@react-native-async-storage/async-storage';
|
|
34
|
+
* // const persistence = getReactNativePersistence(ReactNativeAsyncStorage);
|
|
35
|
+
*
|
|
36
|
+
* // Then, initialize auth:
|
|
37
|
+
* const auth = initializeAuth(app, {
|
|
38
|
+
* persistence
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
23
42
|
* @public
|
|
24
43
|
*/
|
|
25
44
|
export declare function getReactNativePersistence(storage: ReactNativeAsyncStorage): Persistence;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/auth",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0-20260408201731",
|
|
4
4
|
"description": "The Firebase Authenticaton component of the Firebase JS SDK.",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
118
|
"@firebase/app": "0.x",
|
|
119
|
-
"@react-native-async-storage/async-storage": "^2.2.0"
|
|
119
|
+
"@react-native-async-storage/async-storage": "^2.2.0 || ^3.0.0"
|
|
120
120
|
},
|
|
121
121
|
"peerDependenciesMeta": {
|
|
122
122
|
"@react-native-async-storage/async-storage": {
|