@firebase/auth 0.18.1 → 0.18.2-canary.5c9ad7e0b
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 +12 -0
- package/dist/auth-public.d.ts +1 -1
- package/dist/auth.d.ts +1 -2
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-d25c8345.js → popup_redirect-84c74ca6.js} +17 -9
- package/dist/cordova/popup_redirect-84c74ca6.js.map +1 -0
- package/dist/cordova/src/core/credentials/oauth.d.ts +1 -2
- package/dist/esm2017/{index-d81b283a.js → index-1870bc0f.js} +17 -9
- package/dist/esm2017/index-1870bc0f.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/credentials/oauth.d.ts +1 -2
- package/dist/esm5/{index-f7c7b945.js → index-58572547.js} +17 -9
- package/dist/esm5/index-58572547.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/credentials/oauth.d.ts +1 -2
- package/dist/index.webworker.esm5.js +16 -8
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-7fb95db8.js → index-53f145f0.js} +17 -9
- package/dist/node/index-53f145f0.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/core/credentials/oauth.d.ts +1 -2
- package/dist/rn/{enum_maps-dfd404fa.js → enum_maps-b8531d74.js} +17 -9
- package/dist/rn/enum_maps-b8531d74.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/src/core/credentials/oauth.d.ts +1 -2
- package/dist/src/core/credentials/oauth.d.ts +1 -2
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-d25c8345.js.map +0 -1
- package/dist/esm2017/index-d81b283a.js.map +0 -1
- package/dist/esm5/index-f7c7b945.js.map +0 -1
- package/dist/node/index-7fb95db8.js.map +0 -1
- package/dist/rn/enum_maps-dfd404fa.js.map +0 -1
package/dist/esm2017/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-1870bc0f.js';
|
|
2
2
|
import '@firebase/util';
|
|
3
3
|
import '@firebase/app';
|
|
4
4
|
import 'tslib';
|
package/dist/esm2017/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { ao as _isIOS7Or8, ap as debugAssert, aq as _isIOS, ar as _isAndroid, as as _fail, at as _getRedirectUrl, au as _getProjectConfig, av as _createError, aw as _assert, ax as _getInstance, b as browserLocalPersistence, ay as _persistenceKeyName, az as AuthEventManager, a as browserSessionPersistence, aA as _getRedirectResult, aB as _clearRedirectOutcomes, aC as _castAuth } from './index-1870bc0f.js';
|
|
2
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, as as _fail, aG as _generateEventId, aF as _getClientVersion, ax as _getInstance, aA as _getRedirectResult, ay as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-1870bc0f.js';
|
|
3
3
|
import { querystringDecode } from '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
|
5
5
|
import 'tslib';
|
|
@@ -55,8 +55,7 @@ export declare class OAuthCredential extends AuthCredential {
|
|
|
55
55
|
* @readonly
|
|
56
56
|
*/
|
|
57
57
|
secret?: string;
|
|
58
|
-
|
|
59
|
-
nonce?: string;
|
|
58
|
+
private nonce?;
|
|
60
59
|
private pendingToken;
|
|
61
60
|
/** @internal */
|
|
62
61
|
static _fromParams(params: OAuthCredentialParams): OAuthCredential;
|
|
@@ -1798,6 +1798,7 @@ var UserImpl = /** @class */ (function () {
|
|
|
1798
1798
|
this.phoneNumber = opt.phoneNumber || null;
|
|
1799
1799
|
this.photoURL = opt.photoURL || null;
|
|
1800
1800
|
this.isAnonymous = opt.isAnonymous || false;
|
|
1801
|
+
this.tenantId = opt.tenantId || null;
|
|
1801
1802
|
this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
|
|
1802
1803
|
}
|
|
1803
1804
|
UserImpl.prototype.getIdToken = function (forceRefresh) {
|
|
@@ -3056,7 +3057,9 @@ function connectAuthEmulator(auth, url, options) {
|
|
|
3056
3057
|
protocol: protocol.replace(':', ''),
|
|
3057
3058
|
options: Object.freeze({ disableWarnings: disableWarnings })
|
|
3058
3059
|
});
|
|
3059
|
-
|
|
3060
|
+
if (!disableWarnings) {
|
|
3061
|
+
emitEmulatorWarning();
|
|
3062
|
+
}
|
|
3060
3063
|
}
|
|
3061
3064
|
function extractProtocol(url) {
|
|
3062
3065
|
var protocolEnd = url.indexOf(':');
|
|
@@ -3089,7 +3092,7 @@ function parsePort(portStr) {
|
|
|
3089
3092
|
}
|
|
3090
3093
|
return port;
|
|
3091
3094
|
}
|
|
3092
|
-
function emitEmulatorWarning(
|
|
3095
|
+
function emitEmulatorWarning() {
|
|
3093
3096
|
function attachBanner() {
|
|
3094
3097
|
var el = document.createElement('p');
|
|
3095
3098
|
var sty = el.style;
|
|
@@ -3114,8 +3117,7 @@ function emitEmulatorWarning(disableBanner) {
|
|
|
3114
3117
|
' production credentials.');
|
|
3115
3118
|
}
|
|
3116
3119
|
if (typeof window !== 'undefined' &&
|
|
3117
|
-
typeof document !== 'undefined'
|
|
3118
|
-
!disableBanner) {
|
|
3120
|
+
typeof document !== 'undefined') {
|
|
3119
3121
|
if (document.readyState === 'loading') {
|
|
3120
3122
|
window.addEventListener('DOMContentLoaded', attachBanner);
|
|
3121
3123
|
}
|
|
@@ -3571,7 +3573,11 @@ var OAuthCredential = /** @class */ (function (_super) {
|
|
|
3571
3573
|
return null;
|
|
3572
3574
|
}
|
|
3573
3575
|
var cred = new OAuthCredential(providerId, signInMethod);
|
|
3574
|
-
|
|
3576
|
+
cred.idToken = rest.idToken || undefined;
|
|
3577
|
+
cred.accessToken = rest.accessToken || undefined;
|
|
3578
|
+
cred.secret = rest.secret;
|
|
3579
|
+
cred.nonce = rest.nonce;
|
|
3580
|
+
cred.pendingToken = rest.pendingToken || null;
|
|
3575
3581
|
return cred;
|
|
3576
3582
|
};
|
|
3577
3583
|
/** @internal */
|
|
@@ -4180,7 +4186,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
4180
4186
|
* or the ID token string.
|
|
4181
4187
|
*/
|
|
4182
4188
|
OAuthProvider.prototype.credential = function (params) {
|
|
4183
|
-
return this._credential(params);
|
|
4189
|
+
return this._credential(__assign(__assign({}, params), { nonce: params.rawNonce }));
|
|
4184
4190
|
};
|
|
4185
4191
|
/** An internal credential method that accepts more permissive options */
|
|
4186
4192
|
OAuthProvider.prototype._credential = function (params) {
|
|
@@ -4224,7 +4230,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
4224
4230
|
return new OAuthProvider(providerId)._credential({
|
|
4225
4231
|
idToken: oauthIdToken,
|
|
4226
4232
|
accessToken: oauthAccessToken,
|
|
4227
|
-
|
|
4233
|
+
nonce: nonce,
|
|
4228
4234
|
pendingToken: pendingToken
|
|
4229
4235
|
});
|
|
4230
4236
|
}
|
|
@@ -10801,7 +10807,7 @@ var PhoneMultiFactorGenerator = /** @class */ (function () {
|
|
|
10801
10807
|
}());
|
|
10802
10808
|
|
|
10803
10809
|
var name = "@firebase/auth";
|
|
10804
|
-
var version = "0.18.
|
|
10810
|
+
var version = "0.18.2-canary.5c9ad7e0b";
|
|
10805
10811
|
|
|
10806
10812
|
/**
|
|
10807
10813
|
* @license
|
|
@@ -10960,6 +10966,8 @@ function registerAuth(clientPlatform) {
|
|
|
10960
10966
|
return (function (auth) { return new AuthInterop(auth); })(auth);
|
|
10961
10967
|
}, "PRIVATE" /* PRIVATE */).setInstantiationMode("EXPLICIT" /* EXPLICIT */));
|
|
10962
10968
|
registerVersion(name, version, getVersionForPlatform(clientPlatform));
|
|
10969
|
+
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
10970
|
+
registerVersion(name, version, 'esm5');
|
|
10963
10971
|
}
|
|
10964
10972
|
|
|
10965
10973
|
/**
|
|
@@ -11004,4 +11012,4 @@ function getAuth(app) {
|
|
|
11004
11012
|
registerAuth("Browser" /* BROWSER */);
|
|
11005
11013
|
|
|
11006
11014
|
export { sendPasswordResetEmail as $, ActionCodeOperation as A, prodErrorMap as B, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as C, initializeAuth as D, connectAuthEmulator as E, FactorId as F, AuthCredential as G, EmailAuthCredential as H, OAuthCredential as I, PhoneAuthCredential as J, inMemoryPersistence as K, EmailAuthProvider as L, FacebookAuthProvider as M, GoogleAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GithubAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, OAuthProvider as T, SAMLAuthProvider as U, TwitterAuthProvider as V, signInAnonymously as W, signInWithCredential as X, linkWithCredential as Y, reauthenticateWithCredential as Z, signInWithCustomToken as _, browserSessionPersistence as a, confirmPasswordReset as a0, applyActionCode as a1, checkActionCode as a2, verifyPasswordResetCode as a3, createUserWithEmailAndPassword as a4, signInWithEmailAndPassword as a5, sendSignInLinkToEmail as a6, isSignInWithEmailLink as a7, signInWithEmailLink as a8, fetchSignInMethodsForEmail as a9, _clearRedirectOutcomes as aA, _getRedirectResult as aB, _castAuth as aC, UserImpl as aD, AuthImpl as aE, _getClientVersion as aF, _generateEventId as aG, AuthPopup as aH, FetchProvider as aI, SAMLAuthCredential as aJ, sendEmailVerification as aa, verifyBeforeUpdateEmail as ab, ActionCodeURL as ac, parseActionCodeURL as ad, updateProfile as ae, updateEmail as af, updatePassword as ag, getIdToken as ah, getIdTokenResult as ai, unlink as aj, getAdditionalUserInfo as ak, reload as al, getMultiFactorResolver as am, multiFactor as an, _isAndroid as ao, _isIOS7Or8 as ap, _isIOS as aq, _fail as ar, _getRedirectUrl as as, debugAssert as at, _getProjectConfig as au, _createError as av, _assert as aw, AuthEventManager 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, onAuthStateChanged as t, updatePhoneNumber as u, useDeviceLanguage as v, updateCurrentUser as w, signOut as x, deleteUser as y, debugErrorMap as z };
|
|
11007
|
-
//# sourceMappingURL=index-
|
|
11015
|
+
//# sourceMappingURL=index-58572547.js.map
|