@firebase/auth 0.20.1-canary.412ff6e2a → 0.20.1-canary.63ac2ed28
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/auth-public.d.ts +20 -10
- package/dist/auth.d.ts +20 -10
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-ffc03cd6.js → popup_redirect-8b14fafb.js} +17 -8
- package/dist/cordova/popup_redirect-8b14fafb.js.map +1 -0
- package/dist/cordova/src/core/index.d.ts +12 -6
- package/dist/cordova/src/model/public_types.d.ts +8 -4
- package/dist/esm2017/{index-d3c9b57d.js → index-ca500674.js} +17 -8
- package/dist/esm2017/index-ca500674.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/index.d.ts +12 -6
- package/dist/esm2017/src/model/public_types.d.ts +8 -4
- package/dist/esm5/{index-87ef7211.js → index-75f8e9bd.js} +17 -8
- package/dist/esm5/index-75f8e9bd.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/index.d.ts +12 -6
- package/dist/esm5/src/model/public_types.d.ts +8 -4
- package/dist/index.webworker.esm5.js +16 -7
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-f214ad63.js → index-3193662f.js} +17 -8
- package/dist/node/index-3193662f.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/core/index.d.ts +12 -6
- package/dist/node/src/model/public_types.d.ts +8 -4
- package/dist/node-esm/{index-09ef8844.js → index-ff94cafa.js} +17 -8
- package/dist/node-esm/index-ff94cafa.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/core/index.d.ts +12 -6
- package/dist/node-esm/src/model/public_types.d.ts +8 -4
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/{phone-f2ceb9c5.js → phone-f00834aa.js} +17 -8
- package/dist/rn/phone-f00834aa.js.map +1 -0
- package/dist/rn/src/core/index.d.ts +12 -6
- package/dist/rn/src/model/public_types.d.ts +8 -4
- package/dist/src/core/index.d.ts +12 -6
- package/dist/src/model/public_types.d.ts +8 -4
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-ffc03cd6.js.map +0 -1
- package/dist/esm2017/index-d3c9b57d.js.map +0 -1
- package/dist/esm5/index-87ef7211.js.map +0 -1
- package/dist/node/index-f214ad63.js.map +0 -1
- package/dist/node-esm/index-09ef8844.js.map +0 -1
- package/dist/rn/phone-f2ceb9c5.js.map +0 -1
package/dist/esm5/index.js
CHANGED
|
@@ -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-
|
|
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-75f8e9bd.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
package/dist/esm5/internal.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-75f8e9bd.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-75f8e9bd.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
|
|
43
|
-
*
|
|
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
|
|
48
|
-
*
|
|
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
|
|
73
|
-
*
|
|
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
|
|
229
|
-
*
|
|
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
|
|
250
|
-
*
|
|
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.
|
|
526
|
+
var version = "0.20.1-canary.63ac2ed28";
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* @license
|
|
@@ -1055,6 +1055,9 @@ function _performFetchWithErrorHandling(auth, customErrorMap, fetchFn) {
|
|
|
1055
1055
|
else if (serverErrorCode === "EMAIL_EXISTS" /* EMAIL_EXISTS */) {
|
|
1056
1056
|
throw _makeTaggedError(auth, "email-already-in-use" /* EMAIL_EXISTS */, json);
|
|
1057
1057
|
}
|
|
1058
|
+
else if (serverErrorCode === "USER_DISABLED" /* USER_DISABLED */) {
|
|
1059
|
+
throw _makeTaggedError(auth, "user-disabled" /* USER_DISABLED */, json);
|
|
1060
|
+
}
|
|
1058
1061
|
authError = errorMap[serverErrorCode] ||
|
|
1059
1062
|
serverErrorCode
|
|
1060
1063
|
.toLowerCase()
|
|
@@ -7681,13 +7684,17 @@ function setPersistence(auth, persistence) {
|
|
|
7681
7684
|
return getModularInstance(auth).setPersistence(persistence);
|
|
7682
7685
|
}
|
|
7683
7686
|
/**
|
|
7684
|
-
* Adds an observer for changes to the signed-in user's ID token
|
|
7685
|
-
*
|
|
7687
|
+
* Adds an observer for changes to the signed-in user's ID token.
|
|
7688
|
+
*
|
|
7689
|
+
* @remarks
|
|
7690
|
+
* This includes sign-in, sign-out, and token refresh events.
|
|
7686
7691
|
*
|
|
7687
7692
|
* @param auth - The {@link Auth} instance.
|
|
7688
7693
|
* @param nextOrObserver - callback triggered on change.
|
|
7689
|
-
* @param error - callback
|
|
7690
|
-
*
|
|
7694
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
7695
|
+
* on signing in/out can be caught in promises returned from
|
|
7696
|
+
* sign-in/sign-out functions.
|
|
7697
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
7691
7698
|
*
|
|
7692
7699
|
* @public
|
|
7693
7700
|
*/
|
|
@@ -7715,8 +7722,10 @@ function beforeAuthStateChanged(auth, callback, onAbort) {
|
|
|
7715
7722
|
*
|
|
7716
7723
|
* @param auth - The {@link Auth} instance.
|
|
7717
7724
|
* @param nextOrObserver - callback triggered on change.
|
|
7718
|
-
* @param error - callback
|
|
7719
|
-
*
|
|
7725
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
7726
|
+
* on signing in/out can be caught in promises returned from
|
|
7727
|
+
* sign-in/sign-out functions.
|
|
7728
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
7720
7729
|
*
|
|
7721
7730
|
* @public
|
|
7722
7731
|
*/
|