@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/esm5/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-58572547.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 { ao as _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, 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, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az 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 _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, aC as _castAuth } from './index-58572547.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, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az 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-58572547.js';
|
|
3
3
|
import { __awaiter, __generator, __extends } from 'tslib';
|
|
4
4
|
import { querystringDecode } from '@firebase/util';
|
|
5
5
|
import '@firebase/app';
|
|
@@ -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;
|
|
@@ -522,7 +522,7 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
var name = "@firebase/auth";
|
|
525
|
-
var version = "0.18.
|
|
525
|
+
var version = "0.18.2-canary.5c9ad7e0b";
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* @license
|
|
@@ -1837,6 +1837,7 @@ var UserImpl = /** @class */ (function () {
|
|
|
1837
1837
|
this.phoneNumber = opt.phoneNumber || null;
|
|
1838
1838
|
this.photoURL = opt.photoURL || null;
|
|
1839
1839
|
this.isAnonymous = opt.isAnonymous || false;
|
|
1840
|
+
this.tenantId = opt.tenantId || null;
|
|
1840
1841
|
this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);
|
|
1841
1842
|
}
|
|
1842
1843
|
UserImpl.prototype.getIdToken = function (forceRefresh) {
|
|
@@ -3032,6 +3033,8 @@ function registerAuth(clientPlatform) {
|
|
|
3032
3033
|
return (function (auth) { return new AuthInterop(auth); })(auth);
|
|
3033
3034
|
}, "PRIVATE" /* PRIVATE */).setInstantiationMode("EXPLICIT" /* EXPLICIT */));
|
|
3034
3035
|
registerVersion(name, version, getVersionForPlatform(clientPlatform));
|
|
3036
|
+
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
3037
|
+
registerVersion(name, version, 'esm5');
|
|
3035
3038
|
}
|
|
3036
3039
|
|
|
3037
3040
|
var STORAGE_AVAILABLE_KEY = '__sak';
|
|
@@ -4082,7 +4085,9 @@ function connectAuthEmulator(auth, url, options) {
|
|
|
4082
4085
|
protocol: protocol.replace(':', ''),
|
|
4083
4086
|
options: Object.freeze({ disableWarnings: disableWarnings })
|
|
4084
4087
|
});
|
|
4085
|
-
|
|
4088
|
+
if (!disableWarnings) {
|
|
4089
|
+
emitEmulatorWarning();
|
|
4090
|
+
}
|
|
4086
4091
|
}
|
|
4087
4092
|
function extractProtocol(url) {
|
|
4088
4093
|
var protocolEnd = url.indexOf(':');
|
|
@@ -4115,7 +4120,7 @@ function parsePort(portStr) {
|
|
|
4115
4120
|
}
|
|
4116
4121
|
return port;
|
|
4117
4122
|
}
|
|
4118
|
-
function emitEmulatorWarning(
|
|
4123
|
+
function emitEmulatorWarning() {
|
|
4119
4124
|
function attachBanner() {
|
|
4120
4125
|
var el = document.createElement('p');
|
|
4121
4126
|
var sty = el.style;
|
|
@@ -4140,8 +4145,7 @@ function emitEmulatorWarning(disableBanner) {
|
|
|
4140
4145
|
' production credentials.');
|
|
4141
4146
|
}
|
|
4142
4147
|
if (typeof window !== 'undefined' &&
|
|
4143
|
-
typeof document !== 'undefined'
|
|
4144
|
-
!disableBanner) {
|
|
4148
|
+
typeof document !== 'undefined') {
|
|
4145
4149
|
if (document.readyState === 'loading') {
|
|
4146
4150
|
window.addEventListener('DOMContentLoaded', attachBanner);
|
|
4147
4151
|
}
|
|
@@ -4597,7 +4601,11 @@ var OAuthCredential = /** @class */ (function (_super) {
|
|
|
4597
4601
|
return null;
|
|
4598
4602
|
}
|
|
4599
4603
|
var cred = new OAuthCredential(providerId, signInMethod);
|
|
4600
|
-
|
|
4604
|
+
cred.idToken = rest.idToken || undefined;
|
|
4605
|
+
cred.accessToken = rest.accessToken || undefined;
|
|
4606
|
+
cred.secret = rest.secret;
|
|
4607
|
+
cred.nonce = rest.nonce;
|
|
4608
|
+
cred.pendingToken = rest.pendingToken || null;
|
|
4601
4609
|
return cred;
|
|
4602
4610
|
};
|
|
4603
4611
|
/** @internal */
|
|
@@ -5199,7 +5207,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
5199
5207
|
* or the ID token string.
|
|
5200
5208
|
*/
|
|
5201
5209
|
OAuthProvider.prototype.credential = function (params) {
|
|
5202
|
-
return this._credential(params);
|
|
5210
|
+
return this._credential(__assign(__assign({}, params), { nonce: params.rawNonce }));
|
|
5203
5211
|
};
|
|
5204
5212
|
/** An internal credential method that accepts more permissive options */
|
|
5205
5213
|
OAuthProvider.prototype._credential = function (params) {
|
|
@@ -5243,7 +5251,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
5243
5251
|
return new OAuthProvider(providerId)._credential({
|
|
5244
5252
|
idToken: oauthIdToken,
|
|
5245
5253
|
accessToken: oauthAccessToken,
|
|
5246
|
-
|
|
5254
|
+
nonce: nonce,
|
|
5247
5255
|
pendingToken: pendingToken
|
|
5248
5256
|
});
|
|
5249
5257
|
}
|