@firebase/auth 1.2.0 → 1.3.0-canary.031f19b01

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 (39) hide show
  1. package/dist/browser-cjs/{index-5590c19e.js → index-2581b938.js} +2 -2
  2. package/dist/browser-cjs/{index-5590c19e.js.map → index-2581b938.js.map} +1 -1
  3. package/dist/browser-cjs/index.js +1 -1
  4. package/dist/browser-cjs/index.rn.d.ts +11 -3
  5. package/dist/browser-cjs/internal.js +1 -1
  6. package/dist/cordova/index.js +2 -2
  7. package/dist/cordova/index.rn.d.ts +11 -3
  8. package/dist/cordova/internal.js +2 -2
  9. package/dist/cordova/{popup_redirect-bbfe516d.js → popup_redirect-6e9453db.js} +2 -2
  10. package/dist/cordova/{popup_redirect-bbfe516d.js.map → popup_redirect-6e9453db.js.map} +1 -1
  11. package/dist/esm2017/{index-81415345.js → index-72a877f8.js} +2 -2
  12. package/dist/esm2017/{index-81415345.js.map → index-72a877f8.js.map} +1 -1
  13. package/dist/esm2017/index.js +1 -1
  14. package/dist/esm2017/index.rn.d.ts +11 -3
  15. package/dist/esm2017/internal.js +2 -2
  16. package/dist/esm5/{index-2e0f742b.js → index-b737f950.js} +2 -2
  17. package/dist/esm5/{index-2e0f742b.js.map → index-b737f950.js.map} +1 -1
  18. package/dist/esm5/index.js +1 -1
  19. package/dist/esm5/index.rn.d.ts +11 -3
  20. package/dist/esm5/internal.js +2 -2
  21. package/dist/index.rn.d.ts +11 -3
  22. package/dist/index.webworker.esm5.js +1 -1
  23. package/dist/node/index.js +1 -1
  24. package/dist/node/index.rn.d.ts +11 -3
  25. package/dist/node/internal.js +1 -1
  26. package/dist/node/{totp-d1683767.js → totp-286b7d9f.js} +2 -2
  27. package/dist/node/{totp-d1683767.js.map → totp-286b7d9f.js.map} +1 -1
  28. package/dist/node-esm/index.js +1 -1
  29. package/dist/node-esm/index.rn.d.ts +11 -3
  30. package/dist/node-esm/internal.js +2 -2
  31. package/dist/node-esm/{totp-fafe3607.js → totp-6b35ad0f.js} +2 -2
  32. package/dist/node-esm/{totp-fafe3607.js.map → totp-6b35ad0f.js.map} +1 -1
  33. package/dist/rn/{phone-13539df0.js → index-f30c8252.js} +5 -4
  34. package/dist/rn/{phone-13539df0.js.map → index-f30c8252.js.map} +1 -1
  35. package/dist/rn/index.js +90 -80
  36. package/dist/rn/index.js.map +1 -1
  37. package/dist/rn/index.rn.d.ts +11 -3
  38. package/dist/rn/internal.js +198 -198
  39. package/package.json +18 -13
@@ -1,4 +1,4 @@
1
- export { A as ActionCodeOperation, ah as ActionCodeURL, K as AuthCredential, H as AuthErrorCodes, L as EmailAuthCredential, U as EmailAuthProvider, V as FacebookAuthProvider, F as FactorId, X as GithubAuthProvider, W as GoogleAuthProvider, M as OAuthCredential, Y as OAuthProvider, O as OperationType, N as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Z as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, _ as TwitterAuthProvider, a6 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a7 as checkActionCode, a5 as confirmPasswordReset, J as connectAuthEmulator, a9 as createUserWithEmailAndPassword, E as debugErrorMap, D as deleteUser, ae as fetchSignInMethodsForEmail, ap as getAdditionalUserInfo, o as getAuth, am as getIdToken, an as getIdTokenResult, ar as getMultiFactorResolver, j as getRedirectResult, Q as inMemoryPersistence, i as indexedDBLocalPersistence, I as initializeAuth, t as initializeRecaptchaConfig, ac as isSignInWithEmailLink, a1 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, as as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, ai as parseActionCodeURL, G as prodErrorMap, a2 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, aq as reload, af as sendEmailVerification, a4 as sendPasswordResetEmail, ab as sendSignInLinkToEmail, q as setPersistence, $ as signInAnonymously, a0 as signInWithCredential, a3 as signInWithCustomToken, aa as signInWithEmailAndPassword, ad as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ao as unlink, B as updateCurrentUser, ak as updateEmail, al as updatePassword, u as updatePhoneNumber, aj as updateProfile, z as useDeviceLanguage, v as validatePassword, ag as verifyBeforeUpdateEmail, a8 as verifyPasswordResetCode } from './index-2e0f742b.js';
1
+ export { A as ActionCodeOperation, ah as ActionCodeURL, K as AuthCredential, H as AuthErrorCodes, L as EmailAuthCredential, U as EmailAuthProvider, V as FacebookAuthProvider, F as FactorId, X as GithubAuthProvider, W as GoogleAuthProvider, M as OAuthCredential, Y as OAuthProvider, O as OperationType, N as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, Z as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, _ as TwitterAuthProvider, a6 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a7 as checkActionCode, a5 as confirmPasswordReset, J as connectAuthEmulator, a9 as createUserWithEmailAndPassword, E as debugErrorMap, D as deleteUser, ae as fetchSignInMethodsForEmail, ap as getAdditionalUserInfo, o as getAuth, am as getIdToken, an as getIdTokenResult, ar as getMultiFactorResolver, j as getRedirectResult, Q as inMemoryPersistence, i as indexedDBLocalPersistence, I as initializeAuth, t as initializeRecaptchaConfig, ac as isSignInWithEmailLink, a1 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, as as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, ai as parseActionCodeURL, G as prodErrorMap, a2 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, aq as reload, af as sendEmailVerification, a4 as sendPasswordResetEmail, ab as sendSignInLinkToEmail, q as setPersistence, $ as signInAnonymously, a0 as signInWithCredential, a3 as signInWithCustomToken, aa as signInWithEmailAndPassword, ad as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ao as unlink, B as updateCurrentUser, ak as updateEmail, al as updatePassword, u as updatePhoneNumber, aj as updateProfile, z as useDeviceLanguage, v as validatePassword, ag as verifyBeforeUpdateEmail, a8 as verifyPasswordResetCode } from './index-b737f950.js';
2
2
  import 'tslib';
3
3
  import '@firebase/util';
4
4
  import '@firebase/app';
@@ -21,11 +21,19 @@
21
21
  * just use index.ts
22
22
  */
23
23
  import { FirebaseApp } from '@firebase/app';
24
- import { Auth } from './src/model/public_types';
25
- import { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
24
+ import { Auth, Dependencies } from './src/model/public_types';
26
25
  export * from './index.shared';
27
26
  export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
28
27
  export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
29
28
  export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions/phone';
30
- export { getReactNativePersistence };
29
+ export { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
31
30
  export declare function getAuth(app?: FirebaseApp): Auth;
31
+ /**
32
+ * Wrapper around base `initializeAuth()` for RN users only, which
33
+ * shows the warning message if no persistence is provided.
34
+ * Double-checked potential collision with `export * from './index.shared'`
35
+ * as `./index.shared` also exports `initializeAuth()`, and the final
36
+ * bundle does correctly export only this `initializeAuth()` function
37
+ * and not the one from index.shared.
38
+ */
39
+ export declare function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth;
@@ -1,5 +1,5 @@
1
- import { at as _isIOS, au as _isAndroid, av as _fail, aw as _getRedirectUrl, ax as debugAssert, ay as _getProjectConfig, az as _isIOS7Or8, aA as _assert, aB as _createError, aC as AuthEventManager, aD as _getInstance, b as browserLocalPersistence, aE as _persistenceKeyName, aF as _clearRedirectOutcomes, a as browserSessionPersistence, aG as _getRedirectResult, aH as _overrideRedirectResult, aI as _castAuth } from './index-2e0f742b.js';
2
- export { A as ActionCodeOperation, ah as ActionCodeURL, K as AuthCredential, H as AuthErrorCodes, aK as AuthImpl, aN as AuthPopup, L as EmailAuthCredential, U as EmailAuthProvider, V as FacebookAuthProvider, F as FactorId, aO as FetchProvider, X as GithubAuthProvider, W as GoogleAuthProvider, M as OAuthCredential, Y as OAuthProvider, O as OperationType, N as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aP as SAMLAuthCredential, Z as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, _ as TwitterAuthProvider, aJ as UserImpl, aA as _assert, aI as _castAuth, av as _fail, aM as _generateEventId, aL as _getClientVersion, aD as _getInstance, aG as _getRedirectResult, aH as _overrideRedirectResult, aE as _persistenceKeyName, a6 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a7 as checkActionCode, a5 as confirmPasswordReset, J as connectAuthEmulator, a9 as createUserWithEmailAndPassword, E as debugErrorMap, D as deleteUser, ae as fetchSignInMethodsForEmail, ap as getAdditionalUserInfo, o as getAuth, am as getIdToken, an as getIdTokenResult, ar as getMultiFactorResolver, j as getRedirectResult, Q as inMemoryPersistence, i as indexedDBLocalPersistence, I as initializeAuth, t as initializeRecaptchaConfig, ac as isSignInWithEmailLink, a1 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, as as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, ai as parseActionCodeURL, G as prodErrorMap, a2 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, aq as reload, af as sendEmailVerification, a4 as sendPasswordResetEmail, ab as sendSignInLinkToEmail, q as setPersistence, $ as signInAnonymously, a0 as signInWithCredential, a3 as signInWithCustomToken, aa as signInWithEmailAndPassword, ad as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ao as unlink, B as updateCurrentUser, ak as updateEmail, al as updatePassword, u as updatePhoneNumber, aj as updateProfile, z as useDeviceLanguage, v as validatePassword, ag as verifyBeforeUpdateEmail, a8 as verifyPasswordResetCode } from './index-2e0f742b.js';
1
+ import { at as _isIOS, au as _isAndroid, av as _fail, aw as _getRedirectUrl, ax as debugAssert, ay as _getProjectConfig, az as _isIOS7Or8, aA as _assert, aB as _createError, aC as AuthEventManager, aD as _getInstance, b as browserLocalPersistence, aE as _persistenceKeyName, aF as _clearRedirectOutcomes, a as browserSessionPersistence, aG as _getRedirectResult, aH as _overrideRedirectResult, aI as _castAuth } from './index-b737f950.js';
2
+ export { A as ActionCodeOperation, ah as ActionCodeURL, K as AuthCredential, H as AuthErrorCodes, aK as AuthImpl, aN as AuthPopup, L as EmailAuthCredential, U as EmailAuthProvider, V as FacebookAuthProvider, F as FactorId, aO as FetchProvider, X as GithubAuthProvider, W as GoogleAuthProvider, M as OAuthCredential, Y as OAuthProvider, O as OperationType, N as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aP as SAMLAuthCredential, Z as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, _ as TwitterAuthProvider, aJ as UserImpl, aA as _assert, aI as _castAuth, av as _fail, aM as _generateEventId, aL as _getClientVersion, aD as _getInstance, aG as _getRedirectResult, aH as _overrideRedirectResult, aE as _persistenceKeyName, a6 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a7 as checkActionCode, a5 as confirmPasswordReset, J as connectAuthEmulator, a9 as createUserWithEmailAndPassword, E as debugErrorMap, D as deleteUser, ae as fetchSignInMethodsForEmail, ap as getAdditionalUserInfo, o as getAuth, am as getIdToken, an as getIdTokenResult, ar as getMultiFactorResolver, j as getRedirectResult, Q as inMemoryPersistence, i as indexedDBLocalPersistence, I as initializeAuth, t as initializeRecaptchaConfig, ac as isSignInWithEmailLink, a1 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, as as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, ai as parseActionCodeURL, G as prodErrorMap, a2 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, aq as reload, af as sendEmailVerification, a4 as sendPasswordResetEmail, ab as sendSignInLinkToEmail, q as setPersistence, $ as signInAnonymously, a0 as signInWithCredential, a3 as signInWithCustomToken, aa as signInWithEmailAndPassword, ad as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ao as unlink, B as updateCurrentUser, ak as updateEmail, al as updatePassword, u as updatePhoneNumber, aj as updateProfile, z as useDeviceLanguage, v as validatePassword, ag as verifyBeforeUpdateEmail, a8 as verifyPasswordResetCode } from './index-b737f950.js';
3
3
  import { __awaiter, __generator, __extends } from 'tslib';
4
4
  import { querystringDecode } from '@firebase/util';
5
5
  import '@firebase/app';
@@ -21,11 +21,19 @@
21
21
  * just use index.ts
22
22
  */
23
23
  import { FirebaseApp } from '@firebase/app';
24
- import { Auth } from './src/model/public_types';
25
- import { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
24
+ import { Auth, Dependencies } from './src/model/public_types';
26
25
  export * from './index.shared';
27
26
  export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
28
27
  export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
29
28
  export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions/phone';
30
- export { getReactNativePersistence };
29
+ export { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
31
30
  export declare function getAuth(app?: FirebaseApp): Auth;
31
+ /**
32
+ * Wrapper around base `initializeAuth()` for RN users only, which
33
+ * shows the warning message if no persistence is provided.
34
+ * Double-checked potential collision with `export * from './index.shared'`
35
+ * as `./index.shared` also exports `initializeAuth()`, and the final
36
+ * bundle does correctly export only this `initializeAuth()` function
37
+ * and not the one from index.shared.
38
+ */
39
+ export declare function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth;
@@ -551,7 +551,7 @@ function _initializeAuthInstance(auth, deps) {
551
551
  }
552
552
 
553
553
  var name = "@firebase/auth";
554
- var version = "1.2.0";
554
+ var version = "1.3.0-canary.031f19b01";
555
555
 
556
556
  /**
557
557
  * @license
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var totp = require('./totp-d1683767.js');
5
+ var totp = require('./totp-286b7d9f.js');
6
6
  require('tslib');
7
7
  require('@firebase/util');
8
8
  require('@firebase/app');
@@ -21,11 +21,19 @@
21
21
  * just use index.ts
22
22
  */
23
23
  import { FirebaseApp } from '@firebase/app';
24
- import { Auth } from './src/model/public_types';
25
- import { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
24
+ import { Auth, Dependencies } from './src/model/public_types';
26
25
  export * from './index.shared';
27
26
  export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
28
27
  export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
29
28
  export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions/phone';
30
- export { getReactNativePersistence };
29
+ export { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
31
30
  export declare function getAuth(app?: FirebaseApp): Auth;
31
+ /**
32
+ * Wrapper around base `initializeAuth()` for RN users only, which
33
+ * shows the warning message if no persistence is provided.
34
+ * Double-checked potential collision with `export * from './index.shared'`
35
+ * as `./index.shared` also exports `initializeAuth()`, and the final
36
+ * bundle does correctly export only this `initializeAuth()` function
37
+ * and not the one from index.shared.
38
+ */
39
+ export declare function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var totp = require('./totp-d1683767.js');
5
+ var totp = require('./totp-286b7d9f.js');
6
6
  var tslib = require('tslib');
7
7
  var util = require('@firebase/util');
8
8
  var app = require('@firebase/app');
@@ -7988,7 +7988,7 @@ function multiFactor(user) {
7988
7988
  }
7989
7989
 
7990
7990
  var name = "@firebase/auth";
7991
- var version = "1.2.0";
7991
+ var version = "1.3.0-canary.031f19b01";
7992
7992
 
7993
7993
  /**
7994
7994
  * @license
@@ -8559,4 +8559,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
8559
8559
  exports.validatePassword = validatePassword;
8560
8560
  exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
8561
8561
  exports.verifyPasswordResetCode = verifyPasswordResetCode;
8562
- //# sourceMappingURL=totp-d1683767.js.map
8562
+ //# sourceMappingURL=totp-286b7d9f.js.map