@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/node/index.js
CHANGED
package/dist/node/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-3193662f.js');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
var app = require('@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). */
|
|
@@ -953,6 +953,9 @@ async function _performFetchWithErrorHandling(auth, customErrorMap, fetchFn) {
|
|
|
953
953
|
else if (serverErrorCode === "EMAIL_EXISTS" /* EMAIL_EXISTS */) {
|
|
954
954
|
throw _makeTaggedError(auth, "email-already-in-use" /* EMAIL_EXISTS */, json);
|
|
955
955
|
}
|
|
956
|
+
else if (serverErrorCode === "USER_DISABLED" /* USER_DISABLED */) {
|
|
957
|
+
throw _makeTaggedError(auth, "user-disabled" /* USER_DISABLED */, json);
|
|
958
|
+
}
|
|
956
959
|
const authError = errorMap[serverErrorCode] ||
|
|
957
960
|
serverErrorCode
|
|
958
961
|
.toLowerCase()
|
|
@@ -5638,13 +5641,17 @@ function setPersistence(auth, persistence) {
|
|
|
5638
5641
|
return getModularInstance(auth).setPersistence(persistence);
|
|
5639
5642
|
}
|
|
5640
5643
|
/**
|
|
5641
|
-
* Adds an observer for changes to the signed-in user's ID token
|
|
5642
|
-
*
|
|
5644
|
+
* Adds an observer for changes to the signed-in user's ID token.
|
|
5645
|
+
*
|
|
5646
|
+
* @remarks
|
|
5647
|
+
* This includes sign-in, sign-out, and token refresh events.
|
|
5643
5648
|
*
|
|
5644
5649
|
* @param auth - The {@link Auth} instance.
|
|
5645
5650
|
* @param nextOrObserver - callback triggered on change.
|
|
5646
|
-
* @param error - callback
|
|
5647
|
-
*
|
|
5651
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
5652
|
+
* on signing in/out can be caught in promises returned from
|
|
5653
|
+
* sign-in/sign-out functions.
|
|
5654
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
5648
5655
|
*
|
|
5649
5656
|
* @public
|
|
5650
5657
|
*/
|
|
@@ -5672,8 +5679,10 @@ function beforeAuthStateChanged(auth, callback, onAbort) {
|
|
|
5672
5679
|
*
|
|
5673
5680
|
* @param auth - The {@link Auth} instance.
|
|
5674
5681
|
* @param nextOrObserver - callback triggered on change.
|
|
5675
|
-
* @param error - callback
|
|
5676
|
-
*
|
|
5682
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
5683
|
+
* on signing in/out can be caught in promises returned from
|
|
5684
|
+
* sign-in/sign-out functions.
|
|
5685
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
5677
5686
|
*
|
|
5678
5687
|
* @public
|
|
5679
5688
|
*/
|
|
@@ -5938,7 +5947,7 @@ function multiFactor(user) {
|
|
|
5938
5947
|
}
|
|
5939
5948
|
|
|
5940
5949
|
var name = "@firebase/auth";
|
|
5941
|
-
var version = "0.20.1-canary.
|
|
5950
|
+
var version = "0.20.1-canary.63ac2ed28";
|
|
5942
5951
|
|
|
5943
5952
|
/**
|
|
5944
5953
|
* @license
|
|
@@ -6165,4 +6174,4 @@ class PhoneMultiFactorGenerator {
|
|
|
6165
6174
|
AuthImpl.prototype.setPersistence = async () => { };
|
|
6166
6175
|
|
|
6167
6176
|
export { signInWithCustomToken as $, ActionCodeOperation as A, debugErrorMap as B, prodErrorMap as C, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as D, initializeAuth as E, FactorId as F, connectAuthEmulator as G, AuthCredential as H, EmailAuthCredential as I, OAuthCredential as J, PhoneAuthCredential as K, inMemoryPersistence as L, EmailAuthProvider as M, FacebookAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GoogleAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, GithubAuthProvider as T, OAuthProvider as U, SAMLAuthProvider as V, TwitterAuthProvider as W, signInAnonymously as X, signInWithCredential as Y, linkWithCredential as Z, reauthenticateWithCredential as _, browserSessionPersistence as a, sendPasswordResetEmail as a0, confirmPasswordReset as a1, applyActionCode as a2, checkActionCode as a3, verifyPasswordResetCode as a4, createUserWithEmailAndPassword as a5, signInWithEmailAndPassword as a6, sendSignInLinkToEmail as a7, isSignInWithEmailLink as a8, signInWithEmailLink as a9, BaseOAuthProvider as aA, _emulatorUrl as aB, _performApiRequest as aC, _isIOS7Or8 as aD, _isIOS as aE, _isAndroid as aF, _createError as aG, _isSafari as aH, _isIframe as aI, _isMobileBrowser as aJ, _isIE10 as aK, UserImpl as aL, AuthImpl as aM, _getClientVersion as aN, FetchProvider as aO, SAMLAuthCredential as aP, fetchSignInMethodsForEmail as aa, sendEmailVerification as ab, verifyBeforeUpdateEmail as ac, ActionCodeURL as ad, parseActionCodeURL as ae, updateProfile as af, updateEmail as ag, updatePassword as ah, getIdToken as ai, getIdTokenResult as aj, unlink as ak, getAdditionalUserInfo as al, reload as am, getMultiFactorResolver as an, multiFactor as ao, _getInstance as ap, _assert as aq, _signInWithCredential as ar, _reauthenticate as as, _link as at, signInWithIdp as au, _fail as av, debugAssert as aw, _persistenceKeyName as ax, _castAuth as ay, FederatedAuthProvider as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, getAuth as n, ProviderId as o, setPersistence as p, onIdTokenChanged as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, beforeAuthStateChanged as t, updatePhoneNumber as u, onAuthStateChanged as v, useDeviceLanguage as w, updateCurrentUser as x, signOut as y, deleteUser as z };
|
|
6168
|
-
//# sourceMappingURL=index-
|
|
6177
|
+
//# sourceMappingURL=index-ff94cafa.js.map
|