@firebase/auth 1.8.2-canary.2f92a7402 → 1.8.2-canary.313faf66b
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 +15 -9
- package/dist/auth.d.ts +17 -10
- package/dist/browser-cjs/{index-05dea0e3.js → index-4febff3b.js} +10 -4
- package/dist/browser-cjs/index-4febff3b.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/browser-cjs/src/api/errors.d.ts +2 -1
- package/dist/browser-cjs/src/core/errors.d.ts +3 -1
- package/dist/browser-cjs/src/model/public_types.d.ts +14 -9
- package/dist/cordova/auth-cordova-public.d.ts +15 -9
- package/dist/cordova/auth-cordova.d.ts +17 -10
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-ddc160b6.js → popup_redirect-e90b1aad.js} +10 -4
- package/dist/cordova/popup_redirect-e90b1aad.js.map +1 -0
- package/dist/cordova/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/cordova/src/api/errors.d.ts +2 -1
- package/dist/cordova/src/core/errors.d.ts +3 -1
- package/dist/cordova/src/model/public_types.d.ts +14 -9
- package/dist/esm2017/{index-ec72a7f0.js → index-efc59d61.js} +10 -4
- package/dist/esm2017/index-efc59d61.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/esm2017/src/api/errors.d.ts +2 -1
- package/dist/esm2017/src/core/errors.d.ts +3 -1
- package/dist/esm2017/src/model/public_types.d.ts +14 -9
- package/dist/index.webworker.js +9 -3
- package/dist/index.webworker.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/node/src/api/errors.d.ts +2 -1
- package/dist/node/src/core/errors.d.ts +3 -1
- package/dist/node/src/model/public_types.d.ts +14 -9
- package/dist/node/{totp-5687ebe6.js → totp-030e3182.js} +10 -4
- package/dist/node/totp-030e3182.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/authentication/email_and_password.d.ts +1 -0
- package/dist/node-esm/src/api/errors.d.ts +2 -1
- package/dist/node-esm/src/core/errors.d.ts +3 -1
- package/dist/node-esm/src/model/public_types.d.ts +14 -9
- package/dist/node-esm/{totp-70d52d77.js → totp-0ac3e2b3.js} +10 -4
- package/dist/node-esm/totp-0ac3e2b3.js.map +1 -0
- package/dist/rn/{index-2d8ece80.js → index-837c72e5.js} +10 -4
- package/dist/rn/index-837c72e5.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/rn/src/api/errors.d.ts +2 -1
- package/dist/rn/src/core/errors.d.ts +3 -1
- package/dist/rn/src/model/public_types.d.ts +14 -9
- package/dist/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/src/api/errors.d.ts +2 -1
- package/dist/src/core/errors.d.ts +3 -1
- package/dist/src/model/public_types.d.ts +14 -9
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +1 -1
- package/dist/web-extension-cjs/{register-41c7b66e.js → register-de115292.js} +10 -4
- package/dist/web-extension-cjs/register-de115292.js.map +1 -0
- package/dist/web-extension-cjs/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/web-extension-cjs/src/api/errors.d.ts +2 -1
- package/dist/web-extension-cjs/src/core/errors.d.ts +3 -1
- package/dist/web-extension-cjs/src/model/public_types.d.ts +14 -9
- package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +15 -9
- package/dist/web-extension-esm2017/auth-web-extension.d.ts +17 -10
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +2 -2
- package/dist/web-extension-esm2017/{register-e512ccb2.js → register-acacb3a9.js} +10 -4
- package/dist/web-extension-esm2017/register-acacb3a9.js.map +1 -0
- package/dist/web-extension-esm2017/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/web-extension-esm2017/src/api/errors.d.ts +2 -1
- package/dist/web-extension-esm2017/src/core/errors.d.ts +3 -1
- package/dist/web-extension-esm2017/src/model/public_types.d.ts +14 -9
- package/package.json +6 -6
- package/dist/browser-cjs/index-05dea0e3.js.map +0 -1
- package/dist/cordova/popup_redirect-ddc160b6.js.map +0 -1
- package/dist/esm2017/index-ec72a7f0.js.map +0 -1
- package/dist/node/totp-5687ebe6.js.map +0 -1
- package/dist/node-esm/totp-70d52d77.js.map +0 -1
- package/dist/rn/index-2d8ece80.js.map +0 -1
- package/dist/web-extension-cjs/register-41c7b66e.js.map +0 -1
- package/dist/web-extension-esm2017/register-e512ccb2.js.map +0 -1
package/dist/node-esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './totp-
|
|
1
|
+
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './totp-0ac3e2b3.js';
|
|
2
2
|
import '@firebase/app';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import 'tslib';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { au as _getInstance, av as _assert, aw as _signInWithCredential, ax as _reauthenticate, ay as _link$1, L as AuthCredential, az as signInWithIdp, aA as _fail, aB as debugAssert, aC as _persistenceKeyName, aD as _serverAppCurrentUserOperationNotSupportedError, aE as _castAuth, aF as FederatedAuthProvider, aG as BaseOAuthProvider, aH as _emulatorUrl, aI as _performApiRequest, aJ as _isIOS, aK as _isAndroid, aL as _isIOS7Or8, aM as _createError, aN as _isMobileBrowser, aO as _isIE10 } from './totp-
|
|
2
|
-
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, aQ as AuthImpl, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, aS as FetchProvider, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aT as SAMLAuthCredential, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, aP as UserImpl, av as _assert, aE as _castAuth, aA as _fail, aR as _getClientVersion, au as _getInstance, aC as _persistenceKeyName, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './totp-
|
|
1
|
+
import { au as _getInstance, av as _assert, aw as _signInWithCredential, ax as _reauthenticate, ay as _link$1, L as AuthCredential, az as signInWithIdp, aA as _fail, aB as debugAssert, aC as _persistenceKeyName, aD as _serverAppCurrentUserOperationNotSupportedError, aE as _castAuth, aF as FederatedAuthProvider, aG as BaseOAuthProvider, aH as _emulatorUrl, aI as _performApiRequest, aJ as _isIOS, aK as _isAndroid, aL as _isIOS7Or8, aM as _createError, aN as _isMobileBrowser, aO as _isIE10 } from './totp-0ac3e2b3.js';
|
|
2
|
+
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, aQ as AuthImpl, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, aS as FetchProvider, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aT as SAMLAuthCredential, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, aP as UserImpl, av as _assert, aE as _castAuth, aA as _fail, aR as _getClientVersion, au as _getInstance, aC as _persistenceKeyName, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './totp-0ac3e2b3.js';
|
|
3
3
|
import { isEmpty, querystring, querystringDecode } from '@firebase/util';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import { _isFirebaseServerApp, SDK_VERSION } from '@firebase/app';
|
|
@@ -43,6 +43,7 @@ export interface GetOobCodeRequest {
|
|
|
43
43
|
dynamicLinkDomain?: string;
|
|
44
44
|
tenantId?: string;
|
|
45
45
|
targetProjectid?: string;
|
|
46
|
+
linkDomain?: string;
|
|
46
47
|
}
|
|
47
48
|
export interface VerifyEmailRequest extends GetOobCodeRequest {
|
|
48
49
|
requestType: ActionCodeOperation.VERIFY_EMAIL;
|
|
@@ -98,7 +98,8 @@ export declare const enum ServerError {
|
|
|
98
98
|
MISSING_RECAPTCHA_VERSION = "MISSING_RECAPTCHA_VERSION",
|
|
99
99
|
INVALID_RECAPTCHA_VERSION = "INVALID_RECAPTCHA_VERSION",
|
|
100
100
|
INVALID_REQ_TYPE = "INVALID_REQ_TYPE",
|
|
101
|
-
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "PASSWORD_DOES_NOT_MEET_REQUIREMENTS"
|
|
101
|
+
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "PASSWORD_DOES_NOT_MEET_REQUIREMENTS",
|
|
102
|
+
INVALID_HOSTING_LINK_DOMAIN = "INVALID_HOSTING_LINK_DOMAIN"
|
|
102
103
|
}
|
|
103
104
|
/**
|
|
104
105
|
* API Response in the event of an error
|
|
@@ -131,7 +131,8 @@ export declare const enum AuthErrorCode {
|
|
|
131
131
|
INVALID_RECAPTCHA_VERSION = "invalid-recaptcha-version",
|
|
132
132
|
INVALID_REQ_TYPE = "invalid-req-type",
|
|
133
133
|
UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION = "unsupported-password-policy-schema-version",
|
|
134
|
-
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements"
|
|
134
|
+
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements",
|
|
135
|
+
INVALID_HOSTING_LINK_DOMAIN = "invalid-hosting-link-domain"
|
|
135
136
|
}
|
|
136
137
|
export interface ErrorMapRetriever extends AuthErrorMap {
|
|
137
138
|
(): ErrorMap<AuthErrorCode>;
|
|
@@ -321,5 +322,6 @@ export declare const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY: {
|
|
|
321
322
|
readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
|
|
322
323
|
readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
|
|
323
324
|
readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
|
|
325
|
+
readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
|
|
324
326
|
};
|
|
325
327
|
export {};
|
|
@@ -422,12 +422,7 @@ export interface ActionCodeSettings {
|
|
|
422
422
|
* Sets the Android package name.
|
|
423
423
|
*
|
|
424
424
|
* @remarks
|
|
425
|
-
* This will try to open the link in an
|
|
426
|
-
* installed. If `installApp` is passed, it specifies whether to install the Android app if the
|
|
427
|
-
* device supports it and the app is not already installed. If this field is provided without
|
|
428
|
-
* a `packageName`, an error is thrown explaining that the `packageName` must be provided in
|
|
429
|
-
* conjunction with this field. If `minimumVersion` is specified, and an older version of the
|
|
430
|
-
* app is installed, the user is taken to the Play Store to upgrade the app.
|
|
425
|
+
* This will try to open the link in an Android app if it is installed.
|
|
431
426
|
*/
|
|
432
427
|
android?: {
|
|
433
428
|
installApp?: boolean;
|
|
@@ -450,8 +445,6 @@ export interface ActionCodeSettings {
|
|
|
450
445
|
*
|
|
451
446
|
* @remarks
|
|
452
447
|
* This will try to open the link in an iOS app if it is installed.
|
|
453
|
-
*
|
|
454
|
-
* App installation is not supported for iOS.
|
|
455
448
|
*/
|
|
456
449
|
iOS?: {
|
|
457
450
|
bundleId: string;
|
|
@@ -464,7 +457,7 @@ export interface ActionCodeSettings {
|
|
|
464
457
|
* - When the link is handled in the web action widgets, this is the deep link in the
|
|
465
458
|
* `continueUrl` query parameter.
|
|
466
459
|
* - When the link is handled in the app directly, this is the `continueUrl` query parameter in
|
|
467
|
-
* the deep link of the Dynamic Link.
|
|
460
|
+
* the deep link of the Dynamic Link or Hosting link.
|
|
468
461
|
*/
|
|
469
462
|
url: string;
|
|
470
463
|
/**
|
|
@@ -473,8 +466,20 @@ export interface ActionCodeSettings {
|
|
|
473
466
|
*
|
|
474
467
|
*
|
|
475
468
|
* @defaultValue The first domain is automatically selected.
|
|
469
|
+
*
|
|
470
|
+
* @deprecated Firebase Dynamic Links is deprecated and will be shut down as early as August
|
|
471
|
+
* 2025. Instead, use {@link ActionCodeSettings.linkDomain} to set a custom domain for mobile
|
|
472
|
+
* links. Learn more in the {@link https://firebase.google.com/support/dynamic-links-faq | Dynamic Links deprecation FAQ}.
|
|
476
473
|
*/
|
|
477
474
|
dynamicLinkDomain?: string;
|
|
475
|
+
/**
|
|
476
|
+
* The optional custom Firebase Hosting domain to use when the link is to be opened via
|
|
477
|
+
* a specified mobile app. The domain must be configured in Firebase Hosting and owned
|
|
478
|
+
* by the project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).
|
|
479
|
+
*
|
|
480
|
+
* @defaultValue The default Hosting domain will be used (for example, `example.firebaseapp.com`).
|
|
481
|
+
*/
|
|
482
|
+
linkDomain?: string;
|
|
478
483
|
}
|
|
479
484
|
/**
|
|
480
485
|
* A verifier for domain verification and abuse prevention.
|
|
@@ -275,7 +275,9 @@ function _debugErrorMap() {
|
|
|
275
275
|
["invalid-req-type" /* AuthErrorCode.INVALID_REQ_TYPE */]: 'Invalid request parameters.',
|
|
276
276
|
["invalid-recaptcha-version" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */]: 'The reCAPTCHA version is invalid when sending request to the backend.',
|
|
277
277
|
["unsupported-password-policy-schema-version" /* AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION */]: 'The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.',
|
|
278
|
-
["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.'
|
|
278
|
+
["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.',
|
|
279
|
+
["invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */]: 'The provided Hosting link domain is not configured in Firebase Hosting or is not owned by ' +
|
|
280
|
+
'the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).'
|
|
279
281
|
};
|
|
280
282
|
}
|
|
281
283
|
function _prodErrorMap() {
|
|
@@ -420,7 +422,8 @@ const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
|
|
|
420
422
|
MISSING_CLIENT_TYPE: 'auth/missing-client-type',
|
|
421
423
|
MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',
|
|
422
424
|
INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',
|
|
423
|
-
INVALID_REQ_TYPE: 'auth/invalid-req-type'
|
|
425
|
+
INVALID_REQ_TYPE: 'auth/invalid-req-type',
|
|
426
|
+
INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
|
|
424
427
|
};
|
|
425
428
|
|
|
426
429
|
/**
|
|
@@ -5788,8 +5791,11 @@ function _setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {
|
|
|
5788
5791
|
_assert(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, "invalid-continue-uri" /* AuthErrorCode.INVALID_CONTINUE_URI */);
|
|
5789
5792
|
_assert(typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||
|
|
5790
5793
|
actionCodeSettings.dynamicLinkDomain.length > 0, auth, "invalid-dynamic-link-domain" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */);
|
|
5794
|
+
_assert(typeof actionCodeSettings.linkDomain === 'undefined' ||
|
|
5795
|
+
actionCodeSettings.linkDomain.length > 0, auth, "invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */);
|
|
5791
5796
|
request.continueUrl = actionCodeSettings.url;
|
|
5792
5797
|
request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
|
|
5798
|
+
request.linkDomain = actionCodeSettings.linkDomain;
|
|
5793
5799
|
request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;
|
|
5794
5800
|
if (actionCodeSettings.iOS) {
|
|
5795
5801
|
_assert(actionCodeSettings.iOS.bundleId.length > 0, auth, "missing-ios-bundle-id" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */);
|
|
@@ -7059,7 +7065,7 @@ function multiFactor(user) {
|
|
|
7059
7065
|
}
|
|
7060
7066
|
|
|
7061
7067
|
var name = "@firebase/auth";
|
|
7062
|
-
var version = "1.8.2-canary.
|
|
7068
|
+
var version = "1.8.2-canary.313faf66b";
|
|
7063
7069
|
|
|
7064
7070
|
/**
|
|
7065
7071
|
* @license
|
|
@@ -7471,4 +7477,4 @@ function _isEmptyString(input) {
|
|
|
7471
7477
|
}
|
|
7472
7478
|
|
|
7473
7479
|
export { TwitterAuthProvider as $, ActionCodeOperation as A, updateCurrentUser as B, signOut as C, revokeAccessToken as D, deleteUser as E, FactorId as F, debugErrorMap as G, prodErrorMap as H, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as I, initializeAuth as J, connectAuthEmulator as K, AuthCredential as L, EmailAuthCredential as M, OAuthCredential as N, OperationType as O, PhoneAuthProvider as P, PhoneAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, inMemoryPersistence as U, EmailAuthProvider as V, FacebookAuthProvider as W, GoogleAuthProvider as X, GithubAuthProvider as Y, OAuthProvider as Z, SAMLAuthProvider as _, browserSessionPersistence as a, signInAnonymously as a0, signInWithCredential as a1, linkWithCredential as a2, reauthenticateWithCredential as a3, signInWithCustomToken as a4, sendPasswordResetEmail as a5, confirmPasswordReset as a6, applyActionCode as a7, checkActionCode as a8, verifyPasswordResetCode as a9, _fail as aA, debugAssert as aB, _persistenceKeyName as aC, _serverAppCurrentUserOperationNotSupportedError as aD, _castAuth as aE, FederatedAuthProvider as aF, BaseOAuthProvider as aG, _emulatorUrl as aH, _performApiRequest as aI, _isIOS as aJ, _isAndroid as aK, _isIOS7Or8 as aL, _createError as aM, _isMobileBrowser as aN, _isIE10 as aO, UserImpl as aP, AuthImpl as aQ, _getClientVersion as aR, FetchProvider as aS, SAMLAuthCredential as aT, createUserWithEmailAndPassword as aa, signInWithEmailAndPassword as ab, sendSignInLinkToEmail as ac, isSignInWithEmailLink as ad, signInWithEmailLink as ae, fetchSignInMethodsForEmail as af, sendEmailVerification as ag, verifyBeforeUpdateEmail as ah, ActionCodeURL as ai, parseActionCodeURL as aj, updateProfile as ak, updateEmail as al, updatePassword as am, getIdToken as an, getIdTokenResult as ao, unlink as ap, getAdditionalUserInfo as aq, reload as ar, getMultiFactorResolver as as, multiFactor as at, _getInstance as au, _assert as av, _signInWithCredential as aw, _reauthenticate as ax, _link as ay, signInWithIdp 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, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, validatePassword as v, onIdTokenChanged as w, beforeAuthStateChanged as x, onAuthStateChanged as y, useDeviceLanguage as z };
|
|
7474
|
-
//# sourceMappingURL=totp-
|
|
7480
|
+
//# sourceMappingURL=totp-0ac3e2b3.js.map
|