@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.
Files changed (44) hide show
  1. package/dist/browser-cjs/{index-e6fab08e.js → index-eb16a0d1.js} +2 -2
  2. package/dist/browser-cjs/{index-e6fab08e.js.map → index-eb16a0d1.js.map} +1 -1
  3. package/dist/browser-cjs/index.js +1 -1
  4. package/dist/browser-cjs/internal.js +1 -1
  5. package/dist/browser-cjs/src/platform_react_native/persistence/react_native.d.ts +20 -1
  6. package/dist/cordova/index.js +2 -2
  7. package/dist/cordova/internal.js +2 -2
  8. package/dist/cordova/{popup_redirect-5ec7b405.js → popup_redirect-8d67604d.js} +2 -2
  9. package/dist/cordova/{popup_redirect-5ec7b405.js.map → popup_redirect-8d67604d.js.map} +1 -1
  10. package/dist/cordova/src/platform_react_native/persistence/react_native.d.ts +20 -1
  11. package/dist/esm/{index-dfb5c973.js → index-40752d96.js} +2 -2
  12. package/dist/esm/{index-dfb5c973.js.map → index-40752d96.js.map} +1 -1
  13. package/dist/esm/index.js +1 -1
  14. package/dist/esm/internal.js +2 -2
  15. package/dist/esm/src/platform_react_native/persistence/react_native.d.ts +20 -1
  16. package/dist/index.webworker.js +1 -1
  17. package/dist/node/index.js +1 -1
  18. package/dist/node/internal.js +1 -1
  19. package/dist/node/src/platform_react_native/persistence/react_native.d.ts +20 -1
  20. package/dist/node/{totp-a5322a96.js → totp-929d8284.js} +2 -2
  21. package/dist/node/{totp-a5322a96.js.map → totp-929d8284.js.map} +1 -1
  22. package/dist/node-esm/index.js +1 -1
  23. package/dist/node-esm/internal.js +2 -2
  24. package/dist/node-esm/src/platform_react_native/persistence/react_native.d.ts +20 -1
  25. package/dist/node-esm/{totp-ed01b91b.js → totp-c0564291.js} +2 -2
  26. package/dist/node-esm/{totp-ed01b91b.js.map → totp-c0564291.js.map} +1 -1
  27. package/dist/rn/{index-e23bd279.js → index-446db0d6.js} +2 -2
  28. package/dist/rn/{index-e23bd279.js.map → index-446db0d6.js.map} +1 -1
  29. package/dist/rn/index.js +34 -3
  30. package/dist/rn/index.js.map +1 -1
  31. package/dist/rn/internal.js +1 -1
  32. package/dist/rn/src/platform_react_native/persistence/react_native.d.ts +20 -1
  33. package/dist/src/platform_react_native/persistence/react_native.d.ts +20 -1
  34. package/dist/web-extension-cjs/index.js +1 -1
  35. package/dist/web-extension-cjs/internal.js +1 -1
  36. package/dist/web-extension-cjs/{register-a20238ea.js → register-4a6573e8.js} +2 -2
  37. package/dist/web-extension-cjs/{register-a20238ea.js.map → register-4a6573e8.js.map} +1 -1
  38. package/dist/web-extension-cjs/src/platform_react_native/persistence/react_native.d.ts +20 -1
  39. package/dist/web-extension-esm/index.js +2 -2
  40. package/dist/web-extension-esm/internal.js +2 -2
  41. package/dist/web-extension-esm/{register-27e07cc8.js → register-9bf52823.js} +2 -2
  42. package/dist/web-extension-esm/{register-27e07cc8.js.map → register-9bf52823.js.map} +1 -1
  43. package/dist/web-extension-esm/src/platform_react_native/persistence/react_native.d.ts +20 -1
  44. 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-community/async-storage`, and can
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.12.2",
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": {