@firebase/auth 0.19.3-canary.cd5ad5055 → 0.19.3-canary.fd8cd3ec4
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.d.ts +1 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-5dd76297.js → popup_redirect-58e36a10.js} +69 -41
- package/dist/cordova/popup_redirect-58e36a10.js.map +1 -0
- package/dist/cordova/src/api/index.d.ts +2 -1
- package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/cordova/src/model/auth.d.ts +1 -1
- package/dist/esm2017/{index-04ff35a0.js → index-3cdff6d6.js} +19 -14
- package/dist/esm2017/index-3cdff6d6.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/api/index.d.ts +2 -1
- package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/esm2017/src/model/auth.d.ts +1 -1
- package/dist/esm5/{index-636c6345.js → index-76275c60.js} +69 -41
- package/dist/esm5/index-76275c60.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/api/index.d.ts +2 -1
- package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/esm5/src/model/auth.d.ts +1 -1
- package/dist/index.webworker.esm5.js +68 -40
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-8d4e7422.js → index-ab7dc322.js} +69 -41
- package/dist/node/index-ab7dc322.js.map +1 -0
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/api/index.d.ts +2 -1
- package/dist/node/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/node/src/model/auth.d.ts +1 -1
- package/dist/node-esm/{index-2e4b458f.js → index-d93afc5b.js} +19 -14
- package/dist/node-esm/index-d93afc5b.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/api/index.d.ts +2 -1
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/node-esm/src/model/auth.d.ts +1 -1
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/{phone-59c39dd3.js → phone-e6a38a2a.js} +69 -41
- package/dist/rn/phone-e6a38a2a.js.map +1 -0
- package/dist/rn/src/api/index.d.ts +2 -1
- package/dist/rn/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/rn/src/model/auth.d.ts +1 -1
- package/dist/src/api/index.d.ts +2 -1
- package/dist/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/src/model/auth.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-5dd76297.js.map +0 -1
- package/dist/esm2017/index-04ff35a0.js.map +0 -1
- package/dist/esm5/index-636c6345.js.map +0 -1
- package/dist/node/index-8d4e7422.js.map +0 -1
- package/dist/node-esm/index-2e4b458f.js.map +0 -1
- package/dist/rn/phone-59c39dd3.js.map +0 -1
package/dist/node-esm/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-d93afc5b.js';
|
|
2
2
|
import '@firebase/util';
|
|
3
3
|
import '@firebase/app';
|
|
4
4
|
import 'tslib';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ao as _getInstance, ap as _assert, aq as _signInWithCredential, ar as _reauthenticate, as as _link$1, G as AuthCredential, at as signInWithIdp, au as _fail, av as debugAssert, aw as _persistenceKeyName, ax as _castAuth, ay as FederatedAuthProvider, az as BaseOAuthProvider, aA as _emulatorUrl, aB as _performApiRequest, aC as _isIOS7Or8, aD as _isIOS, aE as _isAndroid, aF as _createError, aG as _isSafari, aH as _isIframe, aI as _isMobileBrowser, aJ as _isIE10 } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aL as AuthImpl, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aN 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, aO as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aK as UserImpl, ap as _assert, ax as _castAuth, au as _fail, aM as _getClientVersion, ao as _getInstance, aw 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 _getInstance, ap as _assert, aq as _signInWithCredential, ar as _reauthenticate, as as _link$1, G as AuthCredential, at as signInWithIdp, au as _fail, av as debugAssert, aw as _persistenceKeyName, ax as _castAuth, ay as FederatedAuthProvider, az as BaseOAuthProvider, aA as _emulatorUrl, aB as _performApiRequest, aC as _isIOS7Or8, aD as _isIOS, aE as _isAndroid, aF as _createError, aG as _isSafari, aH as _isIframe, aI as _isMobileBrowser, aJ as _isIE10 } from './index-d93afc5b.js';
|
|
2
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aL as AuthImpl, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aN 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, aO as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aK as UserImpl, ap as _assert, ax as _castAuth, au as _fail, aM as _getClientVersion, ao as _getInstance, aw 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-d93afc5b.js';
|
|
3
3
|
import { querystring, isEmpty, getUA, querystringDecode } from '@firebase/util';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import { SDK_VERSION } from '@firebase/app';
|
|
@@ -27,7 +27,8 @@ export declare const enum HttpMethod {
|
|
|
27
27
|
export declare const enum HttpHeader {
|
|
28
28
|
CONTENT_TYPE = "Content-Type",
|
|
29
29
|
X_FIREBASE_LOCALE = "X-Firebase-Locale",
|
|
30
|
-
X_CLIENT_VERSION = "X-Client-Version"
|
|
30
|
+
X_CLIENT_VERSION = "X-Client-Version",
|
|
31
|
+
X_FIREBASE_GMPID = "X-Firebase-gmpid"
|
|
31
32
|
}
|
|
32
33
|
export declare const enum Endpoint {
|
|
33
34
|
CREATE_AUTH_URI = "/v1/accounts:createAuthUri",
|
|
@@ -95,7 +95,7 @@ export declare class AuthImpl implements AuthInternal, _FirebaseService {
|
|
|
95
95
|
private clientVersion;
|
|
96
96
|
_logFramework(framework: string): void;
|
|
97
97
|
_getFrameworks(): readonly string[];
|
|
98
|
-
|
|
98
|
+
_getAdditionalHeaders(): Promise<Record<string, string>>;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Method to be used to cast down to our private implmentation of Auth.
|
|
@@ -63,7 +63,7 @@ export interface AuthInternal extends Auth {
|
|
|
63
63
|
_getPersistence(): string;
|
|
64
64
|
_logFramework(framework: string): void;
|
|
65
65
|
_getFrameworks(): readonly string[];
|
|
66
|
-
|
|
66
|
+
_getAdditionalHeaders(): Promise<Record<string, string>>;
|
|
67
67
|
readonly name: AppName;
|
|
68
68
|
readonly config: ConfigInternal;
|
|
69
69
|
languageCode: string | null;
|
package/dist/rn/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var reactNative = require('react-native');
|
|
6
6
|
var app = require('@firebase/app');
|
|
7
|
-
var phone = require('./phone-
|
|
7
|
+
var phone = require('./phone-e6a38a2a.js');
|
|
8
8
|
var tslib = require('tslib');
|
|
9
9
|
require('@firebase/util');
|
|
10
10
|
require('@firebase/component');
|
package/dist/rn/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var phone = require('./phone-
|
|
5
|
+
var phone = require('./phone-e6a38a2a.js');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
var app = require('@firebase/app');
|
|
@@ -845,30 +845,38 @@ function _addTidIfNecessary(auth, request) {
|
|
|
845
845
|
function _performApiRequest(auth, method, path, request, customErrorMap) {
|
|
846
846
|
if (customErrorMap === void 0) { customErrorMap = {}; }
|
|
847
847
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
848
|
+
var _this = this;
|
|
848
849
|
return tslib.__generator(this, function (_a) {
|
|
849
|
-
return [2 /*return*/, _performFetchWithErrorHandling(auth, customErrorMap, function () {
|
|
850
|
-
var body
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
850
|
+
return [2 /*return*/, _performFetchWithErrorHandling(auth, customErrorMap, function () { return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
851
|
+
var body, params, query, headers;
|
|
852
|
+
return tslib.__generator(this, function (_a) {
|
|
853
|
+
switch (_a.label) {
|
|
854
|
+
case 0:
|
|
855
|
+
body = {};
|
|
856
|
+
params = {};
|
|
857
|
+
if (request) {
|
|
858
|
+
if (method === "GET" /* GET */) {
|
|
859
|
+
params = request;
|
|
860
|
+
}
|
|
861
|
+
else {
|
|
862
|
+
body = {
|
|
863
|
+
body: JSON.stringify(request)
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
query = util.querystring(tslib.__assign({ key: auth.config.apiKey }, params)).slice(1);
|
|
868
|
+
return [4 /*yield*/, auth._getAdditionalHeaders()];
|
|
869
|
+
case 1:
|
|
870
|
+
headers = _a.sent();
|
|
871
|
+
headers["Content-Type" /* CONTENT_TYPE */] = 'application/json';
|
|
872
|
+
if (auth.languageCode) {
|
|
873
|
+
headers["X-Firebase-Locale" /* X_FIREBASE_LOCALE */] = auth.languageCode;
|
|
874
|
+
}
|
|
875
|
+
return [2 /*return*/, FetchProvider.fetch()(_getFinalTarget(auth, auth.config.apiHost, path, query), tslib.__assign({ method: method,
|
|
876
|
+
headers: headers, referrerPolicy: 'no-referrer' }, body))];
|
|
860
877
|
}
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
var headers = new (FetchProvider.headers())();
|
|
864
|
-
headers.set("Content-Type" /* CONTENT_TYPE */, 'application/json');
|
|
865
|
-
headers.set("X-Client-Version" /* X_CLIENT_VERSION */, auth._getSdkClientVersion());
|
|
866
|
-
if (auth.languageCode) {
|
|
867
|
-
headers.set("X-Firebase-Locale" /* X_FIREBASE_LOCALE */, auth.languageCode);
|
|
868
|
-
}
|
|
869
|
-
return FetchProvider.fetch()(_getFinalTarget(auth, auth.config.apiHost, path, query), tslib.__assign({ method: method,
|
|
870
|
-
headers: headers, referrerPolicy: 'no-referrer' }, body));
|
|
871
|
-
})];
|
|
878
|
+
});
|
|
879
|
+
}); })];
|
|
872
880
|
});
|
|
873
881
|
});
|
|
874
882
|
}
|
|
@@ -1499,24 +1507,32 @@ function extractProviderData(providers) {
|
|
|
1499
1507
|
function requestStsToken(auth, refreshToken) {
|
|
1500
1508
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
1501
1509
|
var response;
|
|
1510
|
+
var _this = this;
|
|
1502
1511
|
return tslib.__generator(this, function (_a) {
|
|
1503
1512
|
switch (_a.label) {
|
|
1504
|
-
case 0: return [4 /*yield*/, _performFetchWithErrorHandling(auth, {}, function () {
|
|
1505
|
-
var body
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1513
|
+
case 0: return [4 /*yield*/, _performFetchWithErrorHandling(auth, {}, function () { return tslib.__awaiter(_this, void 0, void 0, function () {
|
|
1514
|
+
var body, _a, tokenApiHost, apiKey, url, headers;
|
|
1515
|
+
return tslib.__generator(this, function (_b) {
|
|
1516
|
+
switch (_b.label) {
|
|
1517
|
+
case 0:
|
|
1518
|
+
body = util.querystring({
|
|
1519
|
+
'grant_type': 'refresh_token',
|
|
1520
|
+
'refresh_token': refreshToken
|
|
1521
|
+
}).slice(1);
|
|
1522
|
+
_a = auth.config, tokenApiHost = _a.tokenApiHost, apiKey = _a.apiKey;
|
|
1523
|
+
url = _getFinalTarget(auth, tokenApiHost, "/v1/token" /* TOKEN */, "key=" + apiKey);
|
|
1524
|
+
return [4 /*yield*/, auth._getAdditionalHeaders()];
|
|
1525
|
+
case 1:
|
|
1526
|
+
headers = _b.sent();
|
|
1527
|
+
headers["Content-Type" /* CONTENT_TYPE */] = 'application/x-www-form-urlencoded';
|
|
1528
|
+
return [2 /*return*/, FetchProvider.fetch()(url, {
|
|
1529
|
+
method: "POST" /* POST */,
|
|
1530
|
+
headers: headers,
|
|
1531
|
+
body: body
|
|
1532
|
+
})];
|
|
1533
|
+
}
|
|
1518
1534
|
});
|
|
1519
|
-
})];
|
|
1535
|
+
}); })];
|
|
1520
1536
|
case 1:
|
|
1521
1537
|
response = _a.sent();
|
|
1522
1538
|
// The response comes back in snake_case. Convert to camel:
|
|
@@ -2896,8 +2912,20 @@ var AuthImpl = /** @class */ (function () {
|
|
|
2896
2912
|
AuthImpl.prototype._getFrameworks = function () {
|
|
2897
2913
|
return this.frameworks;
|
|
2898
2914
|
};
|
|
2899
|
-
AuthImpl.prototype.
|
|
2900
|
-
return this
|
|
2915
|
+
AuthImpl.prototype._getAdditionalHeaders = function () {
|
|
2916
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
2917
|
+
var headers;
|
|
2918
|
+
var _a;
|
|
2919
|
+
return tslib.__generator(this, function (_b) {
|
|
2920
|
+
headers = (_a = {},
|
|
2921
|
+
_a["X-Client-Version" /* X_CLIENT_VERSION */] = this.clientVersion,
|
|
2922
|
+
_a);
|
|
2923
|
+
if (this.app.options.appId) {
|
|
2924
|
+
headers["X-Firebase-gmpid" /* X_FIREBASE_GMPID */] = this.app.options.appId;
|
|
2925
|
+
}
|
|
2926
|
+
return [2 /*return*/, headers];
|
|
2927
|
+
});
|
|
2928
|
+
});
|
|
2901
2929
|
};
|
|
2902
2930
|
return AuthImpl;
|
|
2903
2931
|
}());
|
|
@@ -6761,7 +6789,7 @@ function multiFactor(user) {
|
|
|
6761
6789
|
}
|
|
6762
6790
|
|
|
6763
6791
|
var name = "@firebase/auth";
|
|
6764
|
-
var version = "0.19.3-canary.
|
|
6792
|
+
var version = "0.19.3-canary.fd8cd3ec4";
|
|
6765
6793
|
|
|
6766
6794
|
/**
|
|
6767
6795
|
* @license
|
|
@@ -8284,4 +8312,4 @@ exports.updateProfile = updateProfile;
|
|
|
8284
8312
|
exports.useDeviceLanguage = useDeviceLanguage;
|
|
8285
8313
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
8286
8314
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
8287
|
-
//# sourceMappingURL=phone-
|
|
8315
|
+
//# sourceMappingURL=phone-e6a38a2a.js.map
|