@firebase/auth 1.1.0 → 1.2.0-canary.cc77a2a19
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/README.md +28 -1
- package/dist/auth-public.d.ts +119 -0
- package/dist/auth.d.ts +179 -2
- package/dist/browser-cjs/{index-0b2238be.js → index-43e33992.js} +566 -278
- package/dist/browser-cjs/index-43e33992.js.map +1 -0
- package/dist/browser-cjs/index.js +3 -2
- package/dist/browser-cjs/index.js.map +1 -1
- package/dist/browser-cjs/internal.js +3 -2
- package/dist/browser-cjs/internal.js.map +1 -1
- package/dist/browser-cjs/src/api/errors.d.ts +2 -1
- package/dist/browser-cjs/src/api/index.d.ts +2 -1
- package/dist/browser-cjs/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/browser-cjs/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/browser-cjs/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/browser-cjs/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/browser-cjs/src/core/errors.d.ts +3 -1
- package/dist/browser-cjs/src/core/index.d.ts +25 -1
- package/dist/browser-cjs/src/model/auth.d.ts +7 -2
- package/dist/browser-cjs/src/model/password_policy.d.ts +111 -0
- package/dist/browser-cjs/src/model/public_types.d.ts +88 -0
- package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/browser-cjs/src/platform_node/index.d.ts +1 -0
- package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/browser-cjs/test/integration/flows/password_policy.test.d.ts +17 -0
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-71c1ff0a.js → popup_redirect-d78c561a.js} +754 -416
- package/dist/cordova/popup_redirect-d78c561a.js.map +1 -0
- package/dist/cordova/src/api/errors.d.ts +2 -1
- package/dist/cordova/src/api/index.d.ts +2 -1
- package/dist/cordova/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/cordova/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/cordova/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/cordova/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/cordova/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/cordova/src/core/errors.d.ts +3 -1
- package/dist/cordova/src/core/index.d.ts +25 -1
- package/dist/cordova/src/model/auth.d.ts +7 -2
- package/dist/cordova/src/model/password_policy.d.ts +111 -0
- package/dist/cordova/src/model/public_types.d.ts +88 -0
- package/dist/cordova/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/cordova/src/platform_node/index.d.ts +1 -0
- package/dist/cordova/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/cordova/test/integration/flows/password_policy.test.d.ts +17 -0
- package/dist/esm2017/{index-e24386e7.js → index-ba845a0f.js} +566 -279
- package/dist/esm2017/index-ba845a0f.js.map +1 -0
- package/dist/esm2017/index.js +2 -2
- package/dist/esm2017/internal.js +3 -3
- package/dist/esm2017/src/api/errors.d.ts +2 -1
- package/dist/esm2017/src/api/index.d.ts +2 -1
- package/dist/esm2017/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/esm2017/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/esm2017/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/esm2017/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/esm2017/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/esm2017/src/core/errors.d.ts +3 -1
- package/dist/esm2017/src/core/index.d.ts +25 -1
- package/dist/esm2017/src/model/auth.d.ts +7 -2
- package/dist/esm2017/src/model/password_policy.d.ts +111 -0
- package/dist/esm2017/src/model/public_types.d.ts +88 -0
- package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/esm2017/src/platform_node/index.d.ts +1 -0
- package/dist/esm2017/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/esm2017/test/integration/flows/password_policy.test.d.ts +17 -0
- package/dist/esm5/{index-be7bff78.js → index-4859a753.js} +754 -416
- package/dist/esm5/index-4859a753.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/api/errors.d.ts +2 -1
- package/dist/esm5/src/api/index.d.ts +2 -1
- package/dist/esm5/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/esm5/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/esm5/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/esm5/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/esm5/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/esm5/src/core/errors.d.ts +3 -1
- package/dist/esm5/src/core/index.d.ts +25 -1
- package/dist/esm5/src/model/auth.d.ts +7 -2
- package/dist/esm5/src/model/password_policy.d.ts +111 -0
- package/dist/esm5/src/model/public_types.d.ts +88 -0
- package/dist/esm5/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/esm5/src/platform_node/index.d.ts +1 -0
- package/dist/esm5/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/esm5/test/integration/flows/password_policy.test.d.ts +17 -0
- package/dist/index.webworker.esm5.js +828 -490
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +2 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/internal.js +2 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/api/errors.d.ts +2 -1
- package/dist/node/src/api/index.d.ts +2 -1
- package/dist/node/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/node/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/node/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/node/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/node/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/node/src/core/errors.d.ts +3 -1
- package/dist/node/src/core/index.d.ts +25 -1
- package/dist/node/src/model/auth.d.ts +7 -2
- package/dist/node/src/model/password_policy.d.ts +111 -0
- package/dist/node/src/model/public_types.d.ts +88 -0
- package/dist/node/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/node/src/platform_node/index.d.ts +1 -0
- package/dist/node/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/node/test/integration/flows/password_policy.test.d.ts +17 -0
- package/dist/node/{totp-8a876b1a.js → totp-e15cd576.js} +717 -378
- package/dist/node/totp-e15cd576.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/errors.d.ts +2 -1
- package/dist/node-esm/src/api/index.d.ts +2 -1
- package/dist/node-esm/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/node-esm/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/node-esm/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/node-esm/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/node-esm/src/core/errors.d.ts +3 -1
- package/dist/node-esm/src/core/index.d.ts +25 -1
- package/dist/node-esm/src/model/auth.d.ts +7 -2
- package/dist/node-esm/src/model/password_policy.d.ts +111 -0
- package/dist/node-esm/src/model/public_types.d.ts +88 -0
- package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/node-esm/src/platform_node/index.d.ts +1 -0
- package/dist/node-esm/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/node-esm/test/integration/flows/password_policy.test.d.ts +17 -0
- package/dist/node-esm/{totp-04ac595e.js → totp-495080fc.js} +554 -267
- package/dist/node-esm/totp-495080fc.js.map +1 -0
- package/dist/rn/index.js +2 -1
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +2 -1
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-2132481b.js → phone-2e00194a.js} +734 -395
- package/dist/rn/phone-2e00194a.js.map +1 -0
- package/dist/rn/src/api/errors.d.ts +2 -1
- package/dist/rn/src/api/index.d.ts +2 -1
- package/dist/rn/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/rn/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/rn/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/rn/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/rn/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/rn/src/core/errors.d.ts +3 -1
- package/dist/rn/src/core/index.d.ts +25 -1
- package/dist/rn/src/model/auth.d.ts +7 -2
- package/dist/rn/src/model/password_policy.d.ts +111 -0
- package/dist/rn/src/model/public_types.d.ts +88 -0
- package/dist/rn/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/rn/src/platform_node/index.d.ts +1 -0
- package/dist/rn/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/rn/test/integration/flows/password_policy.test.d.ts +17 -0
- package/dist/src/api/errors.d.ts +2 -1
- package/dist/src/api/index.d.ts +2 -1
- package/dist/src/api/password_policy/get_password_policy.d.ts +48 -0
- package/dist/src/api/password_policy/get_password_policy.test.d.ts +17 -0
- package/dist/src/core/auth/auth_impl.d.ts +8 -2
- package/dist/src/core/auth/password_policy_impl.d.ts +59 -0
- package/dist/src/core/auth/password_policy_impl.test.d.ts +17 -0
- package/dist/src/core/errors.d.ts +3 -1
- package/dist/src/core/index.d.ts +25 -1
- package/dist/src/model/auth.d.ts +7 -2
- package/dist/src/model/password_policy.d.ts +111 -0
- package/dist/src/model/public_types.d.ts +88 -0
- package/dist/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
- package/dist/src/platform_node/index.d.ts +1 -0
- package/dist/test/helpers/integration/helpers.d.ts +7 -1
- package/dist/test/integration/flows/password_policy.test.d.ts +17 -0
- package/package.json +6 -6
- package/dist/browser-cjs/index-0b2238be.js.map +0 -1
- package/dist/cordova/popup_redirect-71c1ff0a.js.map +0 -1
- package/dist/esm2017/index-e24386e7.js.map +0 -1
- package/dist/esm5/index-be7bff78.js.map +0 -1
- package/dist/node/totp-8a876b1a.js.map +0 -1
- package/dist/node-esm/totp-04ac595e.js.map +0 -1
- package/dist/rn/phone-2132481b.js.map +0 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { PasswordPolicy, PasswordValidationStatus } from './public_types';
|
|
18
|
+
/**
|
|
19
|
+
* Internal typing of password policy that includes the schema version and methods for
|
|
20
|
+
* validating that a password meets the policy. The developer does not need access to
|
|
21
|
+
* these properties and methods, so they are excluded from the public typing.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export interface PasswordPolicyInternal extends PasswordPolicy {
|
|
26
|
+
/**
|
|
27
|
+
* Requirements enforced by the password policy.
|
|
28
|
+
*/
|
|
29
|
+
readonly customStrengthOptions: PasswordPolicyCustomStrengthOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Schema version of the password policy.
|
|
32
|
+
*/
|
|
33
|
+
readonly schemaVersion: number;
|
|
34
|
+
/**
|
|
35
|
+
* Validates the password against the policy.
|
|
36
|
+
* @param password Password to validate.
|
|
37
|
+
*/
|
|
38
|
+
validatePassword(password: string): PasswordValidationStatus;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Internal typing of the password policy custom strength options that is modifiable. This
|
|
42
|
+
* allows us to construct the strength options before storing them in the policy.
|
|
43
|
+
*
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export interface PasswordPolicyCustomStrengthOptions {
|
|
47
|
+
/**
|
|
48
|
+
* Minimum password length.
|
|
49
|
+
*/
|
|
50
|
+
minPasswordLength?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Maximum password length.
|
|
53
|
+
*/
|
|
54
|
+
maxPasswordLength?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the password should contain a lowercase letter.
|
|
57
|
+
*/
|
|
58
|
+
containsLowercaseLetter?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the password should contain an uppercase letter.
|
|
61
|
+
*/
|
|
62
|
+
containsUppercaseLetter?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the password should contain a numeric character.
|
|
65
|
+
*/
|
|
66
|
+
containsNumericCharacter?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the password should contain a non-alphanumeric character.
|
|
69
|
+
*/
|
|
70
|
+
containsNonAlphanumericCharacter?: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Internal typing of password validation status that is modifiable. This allows us to
|
|
74
|
+
* construct the validation status before returning it.
|
|
75
|
+
*
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
export interface PasswordValidationStatusInternal extends PasswordValidationStatus {
|
|
79
|
+
/**
|
|
80
|
+
* Whether the password meets all requirements.
|
|
81
|
+
*/
|
|
82
|
+
isValid: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the password meets the minimum password length.
|
|
85
|
+
*/
|
|
86
|
+
meetsMinPasswordLength?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Whether the password meets the maximum password length.
|
|
89
|
+
*/
|
|
90
|
+
meetsMaxPasswordLength?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the password contains a lowercase letter, if required.
|
|
93
|
+
*/
|
|
94
|
+
containsLowercaseLetter?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the password contains an uppercase letter, if required.
|
|
97
|
+
*/
|
|
98
|
+
containsUppercaseLetter?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the password contains a numeric character, if required.
|
|
101
|
+
*/
|
|
102
|
+
containsNumericCharacter?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Whether the password contains a non-alphanumeric character, if required.
|
|
105
|
+
*/
|
|
106
|
+
containsNonAlphanumericCharacter?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* The policy used to validate the password.
|
|
109
|
+
*/
|
|
110
|
+
passwordPolicy: PasswordPolicy;
|
|
111
|
+
}
|
|
@@ -1188,3 +1188,91 @@ export interface Dependencies {
|
|
|
1188
1188
|
*/
|
|
1189
1189
|
export interface TotpMultiFactorAssertion extends MultiFactorAssertion {
|
|
1190
1190
|
}
|
|
1191
|
+
/**
|
|
1192
|
+
* A structure specifying password policy requirements.
|
|
1193
|
+
*
|
|
1194
|
+
* @public
|
|
1195
|
+
*/
|
|
1196
|
+
export interface PasswordPolicy {
|
|
1197
|
+
/**
|
|
1198
|
+
* Requirements enforced by this password policy.
|
|
1199
|
+
*/
|
|
1200
|
+
readonly customStrengthOptions: {
|
|
1201
|
+
/**
|
|
1202
|
+
* Minimum password length, or undefined if not configured.
|
|
1203
|
+
*/
|
|
1204
|
+
readonly minPasswordLength?: number;
|
|
1205
|
+
/**
|
|
1206
|
+
* Maximum password length, or undefined if not configured.
|
|
1207
|
+
*/
|
|
1208
|
+
readonly maxPasswordLength?: number;
|
|
1209
|
+
/**
|
|
1210
|
+
* Whether the password should contain a lowercase letter, or undefined if not configured.
|
|
1211
|
+
*/
|
|
1212
|
+
readonly containsLowercaseLetter?: boolean;
|
|
1213
|
+
/**
|
|
1214
|
+
* Whether the password should contain an uppercase letter, or undefined if not configured.
|
|
1215
|
+
*/
|
|
1216
|
+
readonly containsUppercaseLetter?: boolean;
|
|
1217
|
+
/**
|
|
1218
|
+
* Whether the password should contain a numeric character, or undefined if not configured.
|
|
1219
|
+
*/
|
|
1220
|
+
readonly containsNumericCharacter?: boolean;
|
|
1221
|
+
/**
|
|
1222
|
+
* Whether the password should contain a non-alphanumeric character, or undefined if not configured.
|
|
1223
|
+
*/
|
|
1224
|
+
readonly containsNonAlphanumericCharacter?: boolean;
|
|
1225
|
+
};
|
|
1226
|
+
/**
|
|
1227
|
+
* List of characters that are considered non-alphanumeric during validation.
|
|
1228
|
+
*/
|
|
1229
|
+
readonly allowedNonAlphanumericCharacters: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* The enforcement state of the policy. Can be 'OFF' or 'ENFORCE'.
|
|
1232
|
+
*/
|
|
1233
|
+
readonly enforcementState: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* Whether existing passwords must meet the policy.
|
|
1236
|
+
*/
|
|
1237
|
+
readonly forceUpgradeOnSignin: boolean;
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* A structure indicating which password policy requirements were met or violated and what the
|
|
1241
|
+
* requirements are.
|
|
1242
|
+
*
|
|
1243
|
+
* @public
|
|
1244
|
+
*/
|
|
1245
|
+
export interface PasswordValidationStatus {
|
|
1246
|
+
/**
|
|
1247
|
+
* Whether the password meets all requirements.
|
|
1248
|
+
*/
|
|
1249
|
+
readonly isValid: boolean;
|
|
1250
|
+
/**
|
|
1251
|
+
* Whether the password meets the minimum password length, or undefined if not required.
|
|
1252
|
+
*/
|
|
1253
|
+
readonly meetsMinPasswordLength?: boolean;
|
|
1254
|
+
/**
|
|
1255
|
+
* Whether the password meets the maximum password length, or undefined if not required.
|
|
1256
|
+
*/
|
|
1257
|
+
readonly meetsMaxPasswordLength?: boolean;
|
|
1258
|
+
/**
|
|
1259
|
+
* Whether the password contains a lowercase letter, or undefined if not required.
|
|
1260
|
+
*/
|
|
1261
|
+
readonly containsLowercaseLetter?: boolean;
|
|
1262
|
+
/**
|
|
1263
|
+
* Whether the password contains an uppercase letter, or undefined if not required.
|
|
1264
|
+
*/
|
|
1265
|
+
readonly containsUppercaseLetter?: boolean;
|
|
1266
|
+
/**
|
|
1267
|
+
* Whether the password contains a numeric character, or undefined if not required.
|
|
1268
|
+
*/
|
|
1269
|
+
readonly containsNumericCharacter?: boolean;
|
|
1270
|
+
/**
|
|
1271
|
+
* Whether the password contains a non-alphanumeric character, or undefined if not required.
|
|
1272
|
+
*/
|
|
1273
|
+
readonly containsNonAlphanumericCharacter?: boolean;
|
|
1274
|
+
/**
|
|
1275
|
+
* The policy used to validate the password.
|
|
1276
|
+
*/
|
|
1277
|
+
readonly passwordPolicy: PasswordPolicy;
|
|
1278
|
+
}
|
|
@@ -39,3 +39,4 @@ export declare class RecaptchaEnterpriseVerifier {
|
|
|
39
39
|
verify(action?: string, forceRefresh?: boolean): Promise<string>;
|
|
40
40
|
}
|
|
41
41
|
export declare function injectRecaptchaFields<T>(auth: AuthInternal, request: T, action: RecaptchaActionName, captchaResp?: boolean): Promise<T>;
|
|
42
|
+
export declare function _initializeRecaptchaConfig(auth: Auth): Promise<void>;
|
|
@@ -43,6 +43,7 @@ export declare const linkWithRedirect: typeof fail;
|
|
|
43
43
|
export declare const reauthenticateWithRedirect: typeof fail;
|
|
44
44
|
export declare const getRedirectResult: typeof fail;
|
|
45
45
|
export declare const RecaptchaVerifier: typeof FailClass;
|
|
46
|
+
export declare const initializeRecaptchaConfig: typeof fail;
|
|
46
47
|
export declare class PhoneMultiFactorGenerator {
|
|
47
48
|
static assertion(): unknown;
|
|
48
49
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import { Auth } from '
|
|
17
|
+
import { Auth } from '@firebase/auth';
|
|
18
18
|
export declare function randomEmail(): string;
|
|
19
19
|
export declare function getTestInstance(requireEmulator?: boolean): Auth;
|
|
20
20
|
export declare function cleanUpTestInstance(auth: Auth): Promise<void>;
|
|
@@ -22,3 +22,9 @@ export declare function getTotpCode(sharedSecretKey: string, periodSec: number,
|
|
|
22
22
|
export declare const email = "totpuser-donotdelete@test.com";
|
|
23
23
|
export declare const password = "password";
|
|
24
24
|
export declare const incorrectTotpCode = "1000000";
|
|
25
|
+
/**
|
|
26
|
+
* Generates a valid password for the project or tenant password policy in the Auth instance.
|
|
27
|
+
* @param auth The {@link Auth} instance.
|
|
28
|
+
* @returns A valid password according to the password policy.
|
|
29
|
+
*/
|
|
30
|
+
export declare function generateValidPassword(auth: Auth): Promise<string>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
package/dist/cordova/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getApp, _getProvider } from '@firebase/app';
|
|
2
|
-
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-
|
|
3
|
-
export { A as ActionCodeOperation,
|
|
2
|
+
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-d78c561a.js';
|
|
3
|
+
export { A as ActionCodeOperation, a5 as ActionCodeURL, x as AuthCredential, t as AuthErrorCodes, E as EmailAuthCredential, C as EmailAuthProvider, D as FacebookAuthProvider, F as FactorId, H as GithubAuthProvider, G as GoogleAuthProvider, y as OAuthCredential, I as OAuthProvider, O as OperationType, z as PhoneAuthCredential, P as ProviderId, J as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, V as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, W as checkActionCode, U as confirmPasswordReset, w as connectAuthEmulator, d as cordovaPopupRedirectResolver, Y as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a2 as fetchSignInMethodsForEmail, ad as getAdditionalUserInfo, aa as getIdToken, ab as getIdTokenResult, af as getMultiFactorResolver, g as getRedirectResult, B as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, a0 as isSignInWithEmailLink, M as linkWithCredential, ag as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a6 as parseActionCodeURL, q as prodErrorMap, N as reauthenticateWithCredential, ae as reload, a3 as sendEmailVerification, R as sendPasswordResetEmail, $ as sendSignInLinkToEmail, s as setPersistence, K as signInAnonymously, L as signInWithCredential, Q as signInWithCustomToken, Z as signInWithEmailAndPassword, a1 as signInWithEmailLink, m as signOut, ac as unlink, l as updateCurrentUser, a8 as updateEmail, a9 as updatePassword, a7 as updateProfile, u as useDeviceLanguage, v as validatePassword, a4 as verifyBeforeUpdateEmail, X as verifyPasswordResetCode } from './popup_redirect-d78c561a.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import '@firebase/util';
|
|
6
6
|
import '@firebase/component';
|
package/dist/cordova/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActionCodeOperation,
|
|
1
|
+
import { ah as _performApiRequest, ai as _addTidIfNecessary, aj as _assert, ak as Delay, al as _window, am as isV2, an as _createError, ao as _loadJS, ap as _generateCallbackName, aq as getRecaptchaParams, ar as _isHttpOrHttps, as as _isWorker, at as _castAuth, L as signInWithCredential, M as linkWithCredential, au as _assertLinkedStatus, N as reauthenticateWithCredential, av as sendPhoneVerificationCode, aw as startEnrollPhoneMfa, ax as _link, z as PhoneAuthCredential, ay as debugAssert, az as _generateEventId, aA as AbstractPopupRedirectOperation, aB as _assertInstanceOf, aC as _withDefaultResolver, aD as FederatedAuthProvider, aE as _fail, aF as _getProjectConfig, aG as _getCurrentUrl, aH as _emulatorUrl, aI as _isChromeIOS, aJ as _isFirefox, aK as _isIOSStandalone, aL as _getRedirectUrl, aM as _setWindowLocation, aN as _isMobileBrowser, aO as _isSafari, aP as _isIOS, f as browserSessionPersistence, aQ as _getRedirectResult, aR as _overrideRedirectResult, aS as AuthEventManager, aT as debugFail, aU as finalizeEnrollPhoneMfa, aV as finalizeEnrollTotpMfa, aW as startEnrollTotpMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence, j as beforeAuthStateChanged, o as onIdTokenChanged, w as connectAuthEmulator } from './popup_redirect-d78c561a.js';
|
|
2
|
+
export { A as ActionCodeOperation, a5 as ActionCodeURL, x as AuthCredential, t as AuthErrorCodes, a_ as AuthImpl, E as EmailAuthCredential, C as EmailAuthProvider, D as FacebookAuthProvider, F as FactorId, b0 as FetchProvider, H as GithubAuthProvider, G as GoogleAuthProvider, y as OAuthCredential, I as OAuthProvider, O as OperationType, z as PhoneAuthCredential, P as ProviderId, b1 as SAMLAuthCredential, J as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aY as UserImpl, aj as _assert, at as _castAuth, aE as _fail, az as _generateEventId, a$ as _getClientVersion, aZ as _getInstance, aQ as _getRedirectResult, aR as _overrideRedirectResult, aX as _persistenceKeyName, V as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, W as checkActionCode, U as confirmPasswordReset, w as connectAuthEmulator, d as cordovaPopupRedirectResolver, Y as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a2 as fetchSignInMethodsForEmail, ad as getAdditionalUserInfo, aa as getIdToken, ab as getIdTokenResult, af as getMultiFactorResolver, g as getRedirectResult, B as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, a0 as isSignInWithEmailLink, M as linkWithCredential, b3 as linkWithRedirect, ag as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a6 as parseActionCodeURL, q as prodErrorMap, N as reauthenticateWithCredential, b4 as reauthenticateWithRedirect, ae as reload, a3 as sendEmailVerification, R as sendPasswordResetEmail, $ as sendSignInLinkToEmail, s as setPersistence, K as signInAnonymously, L as signInWithCredential, Q as signInWithCustomToken, Z as signInWithEmailAndPassword, a1 as signInWithEmailLink, b2 as signInWithRedirect, m as signOut, ac as unlink, l as updateCurrentUser, a8 as updateEmail, a9 as updatePassword, a7 as updateProfile, u as useDeviceLanguage, v as validatePassword, a4 as verifyBeforeUpdateEmail, X as verifyPasswordResetCode } from './popup_redirect-d78c561a.js';
|
|
3
3
|
import { __awaiter, __generator, __assign, __extends, __spreadArray } from 'tslib';
|
|
4
4
|
import { querystring, getModularInstance, getUA, getExperimentalSetting, getDefaultEmulatorHost } from '@firebase/util';
|
|
5
5
|
import { SDK_VERSION, getApp, _getProvider } from '@firebase/app';
|