@firebase/auth 0.20.1-canary.aa44d529e → 0.20.1-canary.dbf623ffe

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 (45) hide show
  1. package/dist/auth-public.d.ts +20 -10
  2. package/dist/auth.d.ts +20 -10
  3. package/dist/cordova/index.js +2 -2
  4. package/dist/cordova/internal.js +2 -2
  5. package/dist/cordova/{popup_redirect-971dbf22.js → popup_redirect-d472aefd.js} +14 -8
  6. package/dist/cordova/{popup_redirect-971dbf22.js.map → popup_redirect-d472aefd.js.map} +1 -1
  7. package/dist/cordova/src/core/index.d.ts +12 -6
  8. package/dist/cordova/src/model/public_types.d.ts +8 -4
  9. package/dist/esm2017/{index-15f1ac82.js → index-8cadb0d7.js} +14 -8
  10. package/dist/esm2017/index-8cadb0d7.js.map +1 -0
  11. package/dist/esm2017/index.js +1 -1
  12. package/dist/esm2017/internal.js +2 -2
  13. package/dist/esm2017/src/core/index.d.ts +12 -6
  14. package/dist/esm2017/src/model/public_types.d.ts +8 -4
  15. package/dist/esm5/{index-a727a04b.js → index-74fca52e.js} +14 -8
  16. package/dist/esm5/index-74fca52e.js.map +1 -0
  17. package/dist/esm5/index.js +1 -1
  18. package/dist/esm5/internal.js +2 -2
  19. package/dist/esm5/src/core/index.d.ts +12 -6
  20. package/dist/esm5/src/model/public_types.d.ts +8 -4
  21. package/dist/index.webworker.esm5.js +13 -7
  22. package/dist/index.webworker.esm5.js.map +1 -1
  23. package/dist/node/{index-d86c9467.js → index-f60a6c47.js} +14 -8
  24. package/dist/node/{index-d86c9467.js.map → index-f60a6c47.js.map} +1 -1
  25. package/dist/node/index.js +1 -1
  26. package/dist/node/internal.js +1 -1
  27. package/dist/node/src/core/index.d.ts +12 -6
  28. package/dist/node/src/model/public_types.d.ts +8 -4
  29. package/dist/node-esm/{index-3ace1623.js → index-4937be25.js} +14 -8
  30. package/dist/node-esm/{index-3ace1623.js.map → index-4937be25.js.map} +1 -1
  31. package/dist/node-esm/index.js +1 -1
  32. package/dist/node-esm/internal.js +2 -2
  33. package/dist/node-esm/src/core/index.d.ts +12 -6
  34. package/dist/node-esm/src/model/public_types.d.ts +8 -4
  35. package/dist/rn/index.js +1 -1
  36. package/dist/rn/internal.js +1 -1
  37. package/dist/rn/{phone-da189f67.js → phone-a24beeb0.js} +14 -8
  38. package/dist/rn/{phone-da189f67.js.map → phone-a24beeb0.js.map} +1 -1
  39. package/dist/rn/src/core/index.d.ts +12 -6
  40. package/dist/rn/src/model/public_types.d.ts +8 -4
  41. package/dist/src/core/index.d.ts +12 -6
  42. package/dist/src/model/public_types.d.ts +8 -4
  43. package/package.json +6 -6
  44. package/dist/esm2017/index-15f1ac82.js.map +0 -1
  45. package/dist/esm5/index-a727a04b.js.map +0 -1
@@ -1,4 +1,4 @@
1
- export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-a727a04b.js';
1
+ export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-74fca52e.js';
2
2
  import 'tslib';
3
3
  import '@firebase/util';
4
4
  import '@firebase/app';
@@ -1,5 +1,5 @@
1
- import { ap as _isAndroid, aq as _isIOS7Or8, ar as _isIOS, as as _fail, at as _getRedirectUrl, au as debugAssert, av as _getProjectConfig, aw as _createError, ax as _assert, ay as AuthEventManager, az as _getInstance, b as browserLocalPersistence, aA as _persistenceKeyName, aB as _clearRedirectOutcomes, a as browserSessionPersistence, aC as _getRedirectResult, aD as _overrideRedirectResult, aE as _castAuth } from './index-a727a04b.js';
2
- export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, aG as AuthImpl, aJ as AuthPopup, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, aK as FetchProvider, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aL as SAMLAuthCredential, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, aF as UserImpl, ax as _assert, aE as _castAuth, as as _fail, aI as _generateEventId, aH as _getClientVersion, az as _getInstance, aC as _getRedirectResult, aD as _overrideRedirectResult, aA as _persistenceKeyName, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-a727a04b.js';
1
+ import { ap as _isAndroid, aq as _isIOS7Or8, ar as _isIOS, as as _fail, at as _getRedirectUrl, au as debugAssert, av as _getProjectConfig, aw as _createError, ax as _assert, ay as AuthEventManager, az as _getInstance, b as browserLocalPersistence, aA as _persistenceKeyName, aB as _clearRedirectOutcomes, a as browserSessionPersistence, aC as _getRedirectResult, aD as _overrideRedirectResult, aE as _castAuth } from './index-74fca52e.js';
2
+ export { A as ActionCodeOperation, ad as ActionCodeURL, H as AuthCredential, D as AuthErrorCodes, aG as AuthImpl, aJ as AuthPopup, I as EmailAuthCredential, M as EmailAuthProvider, N as FacebookAuthProvider, F as FactorId, aK as FetchProvider, T as GithubAuthProvider, Q as GoogleAuthProvider, J as OAuthCredential, U as OAuthProvider, O as OperationType, K as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aL as SAMLAuthCredential, V as SAMLAuthProvider, S as SignInMethod, W as TwitterAuthProvider, aF as UserImpl, ax as _assert, aE as _castAuth, as as _fail, aI as _generateEventId, aH as _getClientVersion, az as _getInstance, aC as _getRedirectResult, aD as _overrideRedirectResult, aA as _persistenceKeyName, a2 as applyActionCode, t as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a3 as checkActionCode, a1 as confirmPasswordReset, G as connectAuthEmulator, a5 as createUserWithEmailAndPassword, B as debugErrorMap, z as deleteUser, aa as fetchSignInMethodsForEmail, al as getAdditionalUserInfo, n as getAuth, ai as getIdToken, aj as getIdTokenResult, an as getMultiFactorResolver, j as getRedirectResult, L as inMemoryPersistence, i as indexedDBLocalPersistence, E as initializeAuth, a8 as isSignInWithEmailLink, Z as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, ao as multiFactor, v as onAuthStateChanged, q as onIdTokenChanged, ae as parseActionCodeURL, C as prodErrorMap, _ as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, am as reload, ab as sendEmailVerification, a0 as sendPasswordResetEmail, a7 as sendSignInLinkToEmail, p as setPersistence, X as signInAnonymously, Y as signInWithCredential, $ as signInWithCustomToken, a6 as signInWithEmailAndPassword, a9 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, y as signOut, ak as unlink, x as updateCurrentUser, ag as updateEmail, ah as updatePassword, u as updatePhoneNumber, af as updateProfile, w as useDeviceLanguage, ac as verifyBeforeUpdateEmail, a4 as verifyPasswordResetCode } from './index-74fca52e.js';
3
3
  import { __awaiter, __generator, __extends } from 'tslib';
4
4
  import { querystringDecode } from '@firebase/util';
5
5
  import '@firebase/app';
@@ -39,13 +39,17 @@ export { debugErrorMap, prodErrorMap, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY
39
39
  */
40
40
  export declare function setPersistence(auth: Auth, persistence: Persistence): Promise<void>;
41
41
  /**
42
- * Adds an observer for changes to the signed-in user's ID token, which includes sign-in,
43
- * sign-out, and token refresh events.
42
+ * Adds an observer for changes to the signed-in user's ID token.
43
+ *
44
+ * @remarks
45
+ * This includes sign-in, sign-out, and token refresh events.
44
46
  *
45
47
  * @param auth - The {@link Auth} instance.
46
48
  * @param nextOrObserver - callback triggered on change.
47
- * @param error - callback triggered on error.
48
- * @param completed - callback triggered when observer is removed.
49
+ * @param error - Deprecated. This callback is never triggered. Errors
50
+ * on signing in/out can be caught in promises returned from
51
+ * sign-in/sign-out functions.
52
+ * @param completed - Deprecated. This callback is never triggered.
49
53
  *
50
54
  * @public
51
55
  */
@@ -69,8 +73,10 @@ export declare function beforeAuthStateChanged(auth: Auth, callback: (user: User
69
73
  *
70
74
  * @param auth - The {@link Auth} instance.
71
75
  * @param nextOrObserver - callback triggered on change.
72
- * @param error - callback triggered on error.
73
- * @param completed - callback triggered when observer is removed.
76
+ * @param error - Deprecated. This callback is never triggered. Errors
77
+ * on signing in/out can be caught in promises returned from
78
+ * sign-in/sign-out functions.
79
+ * @param completed - Deprecated. This callback is never triggered.
74
80
  *
75
81
  * @public
76
82
  */
@@ -225,8 +225,10 @@ export interface Auth {
225
225
  * To keep the old behavior, see {@link Auth.onIdTokenChanged}.
226
226
  *
227
227
  * @param nextOrObserver - callback triggered on change.
228
- * @param error - callback triggered on error.
229
- * @param completed - callback triggered when observer is removed.
228
+ * @param error - Deprecated. This callback is never triggered. Errors
229
+ * on signing in/out can be caught in promises returned from
230
+ * sign-in/sign-out functions.
231
+ * @param completed - Deprecated. This callback is never triggered.
230
232
  */
231
233
  onAuthStateChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
232
234
  /**
@@ -246,8 +248,10 @@ export interface Auth {
246
248
  * This includes sign-in, sign-out, and token refresh events.
247
249
  *
248
250
  * @param nextOrObserver - callback triggered on change.
249
- * @param error - callback triggered on error.
250
- * @param completed - callback triggered when observer is removed.
251
+ * @param error - Deprecated. This callback is never triggered. Errors
252
+ * on signing in/out can be caught in promises returned from
253
+ * sign-in/sign-out functions.
254
+ * @param completed - Deprecated. This callback is never triggered.
251
255
  */
252
256
  onIdTokenChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
253
257
  /** The currently signed-in user (or null). */
@@ -523,7 +523,7 @@ function _initializeAuthInstance(auth, deps) {
523
523
  }
524
524
 
525
525
  var name = "@firebase/auth";
526
- var version = "0.20.1-canary.aa44d529e";
526
+ var version = "0.20.1-canary.dbf623ffe";
527
527
 
528
528
  /**
529
529
  * @license
@@ -7681,13 +7681,17 @@ function setPersistence(auth, persistence) {
7681
7681
  return getModularInstance(auth).setPersistence(persistence);
7682
7682
  }
7683
7683
  /**
7684
- * Adds an observer for changes to the signed-in user's ID token, which includes sign-in,
7685
- * sign-out, and token refresh events.
7684
+ * Adds an observer for changes to the signed-in user's ID token.
7685
+ *
7686
+ * @remarks
7687
+ * This includes sign-in, sign-out, and token refresh events.
7686
7688
  *
7687
7689
  * @param auth - The {@link Auth} instance.
7688
7690
  * @param nextOrObserver - callback triggered on change.
7689
- * @param error - callback triggered on error.
7690
- * @param completed - callback triggered when observer is removed.
7691
+ * @param error - Deprecated. This callback is never triggered. Errors
7692
+ * on signing in/out can be caught in promises returned from
7693
+ * sign-in/sign-out functions.
7694
+ * @param completed - Deprecated. This callback is never triggered.
7691
7695
  *
7692
7696
  * @public
7693
7697
  */
@@ -7715,8 +7719,10 @@ function beforeAuthStateChanged(auth, callback, onAbort) {
7715
7719
  *
7716
7720
  * @param auth - The {@link Auth} instance.
7717
7721
  * @param nextOrObserver - callback triggered on change.
7718
- * @param error - callback triggered on error.
7719
- * @param completed - callback triggered when observer is removed.
7722
+ * @param error - Deprecated. This callback is never triggered. Errors
7723
+ * on signing in/out can be caught in promises returned from
7724
+ * sign-in/sign-out functions.
7725
+ * @param completed - Deprecated. This callback is never triggered.
7720
7726
  *
7721
7727
  * @public
7722
7728
  */