@firebase/auth 0.23.0-canary.98abcd5ed → 0.23.0-canary.a741002c3
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 +5 -5
- package/dist/auth.d.ts +5 -5
- package/dist/browser-cjs/{index-90be281f.js → index-a4be6088.js} +11 -15
- package/dist/browser-cjs/index-a4be6088.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/model/public_types.d.ts +8 -5
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-cb959101.js → popup_redirect-6d88d8b7.js} +11 -15
- package/dist/cordova/popup_redirect-6d88d8b7.js.map +1 -0
- package/dist/cordova/src/model/public_types.d.ts +8 -5
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/esm2017/{index-57ede0e2.js → index-adf57cc4.js} +11 -15
- package/dist/esm2017/index-adf57cc4.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/model/public_types.d.ts +8 -5
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/esm5/{index-3fdc7e47.js → index-8cc1921f.js} +11 -15
- package/dist/esm5/index-8cc1921f.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/model/public_types.d.ts +8 -5
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/index.webworker.esm5.js +10 -14
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/model/public_types.d.ts +8 -5
- package/dist/node/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/node/{totp-33860296.js → totp-993314d6.js} +11 -15
- package/dist/node/totp-993314d6.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/model/public_types.d.ts +8 -5
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/node-esm/{totp-8aa9dc89.js → totp-51d704bb.js} +11 -15
- package/dist/node-esm/totp-51d704bb.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/{phone-a6afb8fd.js → phone-6dc63d95.js} +11 -15
- package/dist/rn/phone-6dc63d95.js.map +1 -0
- package/dist/rn/src/model/public_types.d.ts +8 -5
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/src/model/public_types.d.ts +8 -5
- package/dist/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/package.json +6 -6
- package/dist/browser-cjs/index-90be281f.js.map +0 -1
- package/dist/cordova/popup_redirect-cb959101.js.map +0 -1
- package/dist/esm2017/index-57ede0e2.js.map +0 -1
- package/dist/esm5/index-3fdc7e47.js.map +0 -1
- package/dist/node/totp-33860296.js.map +0 -1
- package/dist/node-esm/totp-8aa9dc89.js.map +0 -1
- package/dist/rn/phone-a6afb8fd.js.map +0 -1
package/dist/auth-public.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare interface ActionCodeInfo {
|
|
|
50
50
|
/**
|
|
51
51
|
* The type of operation that generated the action code.
|
|
52
52
|
*/
|
|
53
|
-
operation: typeof ActionCodeOperation[keyof typeof ActionCodeOperation];
|
|
53
|
+
operation: (typeof ActionCodeOperation)[keyof typeof ActionCodeOperation];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -1725,7 +1725,7 @@ export declare function multiFactor(user: User): MultiFactorUser;
|
|
|
1725
1725
|
*/
|
|
1726
1726
|
export declare interface MultiFactorAssertion {
|
|
1727
1727
|
/** The identifier of the second factor. */
|
|
1728
|
-
readonly factorId: typeof FactorId[keyof typeof FactorId];
|
|
1728
|
+
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
|
|
1729
1729
|
}
|
|
1730
1730
|
|
|
1731
1731
|
/**
|
|
@@ -1765,7 +1765,7 @@ export declare interface MultiFactorError extends AuthError {
|
|
|
1765
1765
|
/**
|
|
1766
1766
|
* The type of operation (sign-in, linking, or re-authentication) that raised the error.
|
|
1767
1767
|
*/
|
|
1768
|
-
readonly operationType: typeof OperationType[keyof typeof OperationType];
|
|
1768
|
+
readonly operationType: (typeof OperationType)[keyof typeof OperationType];
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
@@ -1782,7 +1782,7 @@ export declare interface MultiFactorInfo {
|
|
|
1782
1782
|
/** The enrollment date of the second factor formatted as a UTC string. */
|
|
1783
1783
|
readonly enrollmentTime: string;
|
|
1784
1784
|
/** The identifier of the second factor. */
|
|
1785
|
-
readonly factorId: typeof FactorId[keyof typeof FactorId];
|
|
1785
|
+
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
|
|
1786
1786
|
}
|
|
1787
1787
|
|
|
1788
1788
|
/**
|
|
@@ -3625,7 +3625,7 @@ export declare interface UserCredential {
|
|
|
3625
3625
|
/**
|
|
3626
3626
|
* The type of operation which was used to authenticate the user (such as sign-in or link).
|
|
3627
3627
|
*/
|
|
3628
|
-
operationType: typeof OperationType[keyof typeof OperationType];
|
|
3628
|
+
operationType: (typeof OperationType)[keyof typeof OperationType];
|
|
3629
3629
|
}
|
|
3630
3630
|
|
|
3631
3631
|
/* Excluded from this release type: UserCredentialInternal */
|
package/dist/auth.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare interface ActionCodeInfo {
|
|
|
50
50
|
/**
|
|
51
51
|
* The type of operation that generated the action code.
|
|
52
52
|
*/
|
|
53
|
-
operation: typeof ActionCodeOperation[keyof typeof ActionCodeOperation];
|
|
53
|
+
operation: (typeof ActionCodeOperation)[keyof typeof ActionCodeOperation];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -2060,7 +2060,7 @@ export declare function multiFactor(user: User): MultiFactorUser;
|
|
|
2060
2060
|
*/
|
|
2061
2061
|
export declare interface MultiFactorAssertion {
|
|
2062
2062
|
/** The identifier of the second factor. */
|
|
2063
|
-
readonly factorId: typeof FactorId[keyof typeof FactorId];
|
|
2063
|
+
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
2066
|
/**
|
|
@@ -2100,7 +2100,7 @@ export declare interface MultiFactorError extends AuthError {
|
|
|
2100
2100
|
/**
|
|
2101
2101
|
* The type of operation (sign-in, linking, or re-authentication) that raised the error.
|
|
2102
2102
|
*/
|
|
2103
|
-
readonly operationType: typeof OperationType[keyof typeof OperationType];
|
|
2103
|
+
readonly operationType: (typeof OperationType)[keyof typeof OperationType];
|
|
2104
2104
|
};
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
@@ -2117,7 +2117,7 @@ export declare interface MultiFactorInfo {
|
|
|
2117
2117
|
/** The enrollment date of the second factor formatted as a UTC string. */
|
|
2118
2118
|
readonly enrollmentTime: string;
|
|
2119
2119
|
/** The identifier of the second factor. */
|
|
2120
|
-
readonly factorId: typeof FactorId[keyof typeof FactorId];
|
|
2120
|
+
readonly factorId: (typeof FactorId)[keyof typeof FactorId];
|
|
2121
2121
|
}
|
|
2122
2122
|
|
|
2123
2123
|
/**
|
|
@@ -4091,7 +4091,7 @@ export declare interface UserCredential {
|
|
|
4091
4091
|
/**
|
|
4092
4092
|
* The type of operation which was used to authenticate the user (such as sign-in or link).
|
|
4093
4093
|
*/
|
|
4094
|
-
operationType: typeof OperationType[keyof typeof OperationType];
|
|
4094
|
+
operationType: (typeof OperationType)[keyof typeof OperationType];
|
|
4095
4095
|
}
|
|
4096
4096
|
|
|
4097
4097
|
/**
|
|
@@ -2203,6 +2203,7 @@ function _generateCallbackName(prefix) {
|
|
|
2203
2203
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2204
2204
|
const RECAPTCHA_ENTERPRISE_URL = 'https://www.google.com/recaptcha/enterprise.js?render=';
|
|
2205
2205
|
const RECAPTCHA_ENTERPRISE_VERIFIER_TYPE = 'recaptcha-enterprise';
|
|
2206
|
+
const FAKE_TOKEN = 'NO_RECAPTCHA';
|
|
2206
2207
|
class RecaptchaEnterpriseVerifier {
|
|
2207
2208
|
/**
|
|
2208
2209
|
*
|
|
@@ -2261,19 +2262,14 @@ class RecaptchaEnterpriseVerifier {
|
|
|
2261
2262
|
const grecaptcha = window.grecaptcha;
|
|
2262
2263
|
if (isEnterprise(grecaptcha)) {
|
|
2263
2264
|
grecaptcha.enterprise.ready(() => {
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
});
|
|
2273
|
-
}
|
|
2274
|
-
catch (error) {
|
|
2275
|
-
reject(error);
|
|
2276
|
-
}
|
|
2265
|
+
grecaptcha.enterprise
|
|
2266
|
+
.execute(siteKey, { action })
|
|
2267
|
+
.then(token => {
|
|
2268
|
+
resolve(token);
|
|
2269
|
+
})
|
|
2270
|
+
.catch(() => {
|
|
2271
|
+
resolve(FAKE_TOKEN);
|
|
2272
|
+
});
|
|
2277
2273
|
});
|
|
2278
2274
|
}
|
|
2279
2275
|
else {
|
|
@@ -9870,7 +9866,7 @@ function _isEmptyString(input) {
|
|
|
9870
9866
|
}
|
|
9871
9867
|
|
|
9872
9868
|
var name = "@firebase/auth";
|
|
9873
|
-
var version = "0.23.0-canary.
|
|
9869
|
+
var version = "0.23.0-canary.a741002c3";
|
|
9874
9870
|
|
|
9875
9871
|
/**
|
|
9876
9872
|
* @license
|
|
@@ -10199,4 +10195,4 @@ exports.updateProfile = updateProfile;
|
|
|
10199
10195
|
exports.useDeviceLanguage = useDeviceLanguage;
|
|
10200
10196
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
10201
10197
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
10202
|
-
//# sourceMappingURL=index-
|
|
10198
|
+
//# sourceMappingURL=index-a4be6088.js.map
|