@firebase/auth 0.20.1 → 0.20.2-20220524224751
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/CHANGELOG.md +6 -0
- package/dist/auth-public.d.ts +21 -10
- package/dist/auth.d.ts +21 -10
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/index.js.map +1 -1
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-212c98e6.js → popup_redirect-0b94702a.js} +14 -8
- package/dist/cordova/{popup_redirect-212c98e6.js.map → popup_redirect-0b94702a.js.map} +1 -1
- package/dist/cordova/src/core/index.d.ts +12 -6
- package/dist/cordova/src/model/public_types.d.ts +9 -4
- package/dist/esm2017/{index-3b632d0b.js → index-ff134925.js} +14 -8
- package/dist/esm2017/index-ff134925.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/internal.js.map +1 -1
- package/dist/esm2017/src/core/index.d.ts +12 -6
- package/dist/esm2017/src/model/public_types.d.ts +9 -4
- package/dist/esm5/{index-0e5111f4.js → index-7bf76fcf.js} +14 -8
- package/dist/esm5/index-7bf76fcf.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/internal.js.map +1 -1
- package/dist/esm5/src/core/index.d.ts +12 -6
- package/dist/esm5/src/model/public_types.d.ts +9 -4
- package/dist/index.webworker.esm5.js +13 -7
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-ab3e8e37.js → index-42f2e73f.js} +14 -8
- package/dist/{node-esm/index-5ae5a5eb.js.map → node/index-42f2e73f.js.map} +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/index.d.ts +12 -6
- package/dist/node/src/model/public_types.d.ts +9 -4
- package/dist/node-esm/{index-5ae5a5eb.js → index-cbdb03d7.js} +14 -8
- package/dist/{node/index-ab3e8e37.js.map → node-esm/index-cbdb03d7.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/index.d.ts +12 -6
- package/dist/node-esm/src/model/public_types.d.ts +9 -4
- package/dist/rn/index.js +1 -1
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-cf00e1ee.js → phone-08495d93.js} +14 -8
- package/dist/rn/{phone-cf00e1ee.js.map → phone-08495d93.js.map} +1 -1
- package/dist/rn/src/core/index.d.ts +12 -6
- package/dist/rn/src/model/public_types.d.ts +9 -4
- package/dist/src/core/index.d.ts +12 -6
- package/dist/src/model/public_types.d.ts +9 -4
- package/package.json +3 -3
- package/dist/esm2017/index-3b632d0b.js.map +0 -1
- package/dist/esm5/index-0e5111f4.js.map +0 -1
|
@@ -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
|
*/
|
|
@@ -83,6 +83,7 @@ export interface ParsedToken {
|
|
|
83
83
|
'firebase'?: {
|
|
84
84
|
'sign_in_provider'?: string;
|
|
85
85
|
'sign_in_second_factor'?: string;
|
|
86
|
+
'identities'?: Record<string, string>;
|
|
86
87
|
};
|
|
87
88
|
/** Map of any additional custom claims. */
|
|
88
89
|
[key: string]: string | object | undefined;
|
|
@@ -224,8 +225,10 @@ export interface Auth {
|
|
|
224
225
|
* To keep the old behavior, see {@link Auth.onIdTokenChanged}.
|
|
225
226
|
*
|
|
226
227
|
* @param nextOrObserver - callback triggered on change.
|
|
227
|
-
* @param error - callback
|
|
228
|
-
*
|
|
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.
|
|
229
232
|
*/
|
|
230
233
|
onAuthStateChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
231
234
|
/**
|
|
@@ -245,8 +248,10 @@ export interface Auth {
|
|
|
245
248
|
* This includes sign-in, sign-out, and token refresh events.
|
|
246
249
|
*
|
|
247
250
|
* @param nextOrObserver - callback triggered on change.
|
|
248
|
-
* @param error - callback
|
|
249
|
-
*
|
|
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.
|
|
250
255
|
*/
|
|
251
256
|
onIdTokenChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
252
257
|
/** The currently signed-in user (or null). */
|
|
@@ -5654,13 +5654,17 @@ function setPersistence(auth, persistence) {
|
|
|
5654
5654
|
return getModularInstance(auth).setPersistence(persistence);
|
|
5655
5655
|
}
|
|
5656
5656
|
/**
|
|
5657
|
-
* Adds an observer for changes to the signed-in user's ID token
|
|
5658
|
-
*
|
|
5657
|
+
* Adds an observer for changes to the signed-in user's ID token.
|
|
5658
|
+
*
|
|
5659
|
+
* @remarks
|
|
5660
|
+
* This includes sign-in, sign-out, and token refresh events.
|
|
5659
5661
|
*
|
|
5660
5662
|
* @param auth - The {@link Auth} instance.
|
|
5661
5663
|
* @param nextOrObserver - callback triggered on change.
|
|
5662
|
-
* @param error - callback
|
|
5663
|
-
*
|
|
5664
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
5665
|
+
* on signing in/out can be caught in promises returned from
|
|
5666
|
+
* sign-in/sign-out functions.
|
|
5667
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
5664
5668
|
*
|
|
5665
5669
|
* @public
|
|
5666
5670
|
*/
|
|
@@ -5688,8 +5692,10 @@ function beforeAuthStateChanged(auth, callback, onAbort) {
|
|
|
5688
5692
|
*
|
|
5689
5693
|
* @param auth - The {@link Auth} instance.
|
|
5690
5694
|
* @param nextOrObserver - callback triggered on change.
|
|
5691
|
-
* @param error - callback
|
|
5692
|
-
*
|
|
5695
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
5696
|
+
* on signing in/out can be caught in promises returned from
|
|
5697
|
+
* sign-in/sign-out functions.
|
|
5698
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
5693
5699
|
*
|
|
5694
5700
|
* @public
|
|
5695
5701
|
*/
|
|
@@ -9267,7 +9273,7 @@ class PhoneMultiFactorGenerator {
|
|
|
9267
9273
|
PhoneMultiFactorGenerator.FACTOR_ID = 'phone';
|
|
9268
9274
|
|
|
9269
9275
|
var name = "@firebase/auth";
|
|
9270
|
-
var version = "0.20.
|
|
9276
|
+
var version = "0.20.2-20220524224751";
|
|
9271
9277
|
|
|
9272
9278
|
/**
|
|
9273
9279
|
* @license
|
|
@@ -9458,4 +9464,4 @@ function getAuth(app = getApp()) {
|
|
|
9458
9464
|
registerAuth("Browser" /* BROWSER */);
|
|
9459
9465
|
|
|
9460
9466
|
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, AuthEventManager as aA, _getRedirectResult as aB, _overrideRedirectResult as aC, _clearRedirectOutcomes as aD, _castAuth as aE, UserImpl as aF, AuthImpl as aG, _getClientVersion as aH, _generateEventId as aI, AuthPopup as aJ, FetchProvider as aK, SAMLAuthCredential as aL, 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, _isIOS7Or8 as ap, debugAssert as aq, _isIOS as ar, _isAndroid as as, _fail as at, _getRedirectUrl as au, _getProjectConfig as av, _createError as aw, _assert as ax, _getInstance as ay, _persistenceKeyName 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 };
|
|
9461
|
-
//# sourceMappingURL=index-
|
|
9467
|
+
//# sourceMappingURL=index-ff134925.js.map
|