@firebase/auth 1.1.0 → 1.2.0-canary.309f7a914

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.
Files changed (183) hide show
  1. package/README.md +28 -1
  2. package/dist/auth-public.d.ts +119 -0
  3. package/dist/auth.d.ts +179 -2
  4. package/dist/browser-cjs/{index-0b2238be.js → index-d2c2196f.js} +566 -278
  5. package/dist/browser-cjs/index-d2c2196f.js.map +1 -0
  6. package/dist/browser-cjs/index.js +3 -2
  7. package/dist/browser-cjs/index.js.map +1 -1
  8. package/dist/browser-cjs/index.rn.d.ts +11 -3
  9. package/dist/browser-cjs/internal.js +3 -2
  10. package/dist/browser-cjs/internal.js.map +1 -1
  11. package/dist/browser-cjs/src/api/errors.d.ts +2 -1
  12. package/dist/browser-cjs/src/api/index.d.ts +2 -1
  13. package/dist/browser-cjs/src/api/password_policy/get_password_policy.d.ts +48 -0
  14. package/dist/browser-cjs/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  15. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +8 -2
  16. package/dist/browser-cjs/src/core/auth/password_policy_impl.d.ts +59 -0
  17. package/dist/browser-cjs/src/core/auth/password_policy_impl.test.d.ts +17 -0
  18. package/dist/browser-cjs/src/core/errors.d.ts +3 -1
  19. package/dist/browser-cjs/src/core/index.d.ts +25 -1
  20. package/dist/browser-cjs/src/model/auth.d.ts +7 -2
  21. package/dist/browser-cjs/src/model/password_policy.d.ts +111 -0
  22. package/dist/browser-cjs/src/model/public_types.d.ts +88 -0
  23. package/dist/browser-cjs/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  24. package/dist/browser-cjs/src/platform_node/index.d.ts +1 -0
  25. package/dist/browser-cjs/test/helpers/integration/helpers.d.ts +7 -1
  26. package/dist/browser-cjs/test/integration/flows/password_policy.test.d.ts +17 -0
  27. package/dist/cordova/index.js +2 -2
  28. package/dist/cordova/index.rn.d.ts +11 -3
  29. package/dist/cordova/internal.js +2 -2
  30. package/dist/cordova/{popup_redirect-71c1ff0a.js → popup_redirect-63074918.js} +754 -416
  31. package/dist/cordova/popup_redirect-63074918.js.map +1 -0
  32. package/dist/cordova/src/api/errors.d.ts +2 -1
  33. package/dist/cordova/src/api/index.d.ts +2 -1
  34. package/dist/cordova/src/api/password_policy/get_password_policy.d.ts +48 -0
  35. package/dist/cordova/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  36. package/dist/cordova/src/core/auth/auth_impl.d.ts +8 -2
  37. package/dist/cordova/src/core/auth/password_policy_impl.d.ts +59 -0
  38. package/dist/cordova/src/core/auth/password_policy_impl.test.d.ts +17 -0
  39. package/dist/cordova/src/core/errors.d.ts +3 -1
  40. package/dist/cordova/src/core/index.d.ts +25 -1
  41. package/dist/cordova/src/model/auth.d.ts +7 -2
  42. package/dist/cordova/src/model/password_policy.d.ts +111 -0
  43. package/dist/cordova/src/model/public_types.d.ts +88 -0
  44. package/dist/cordova/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  45. package/dist/cordova/src/platform_node/index.d.ts +1 -0
  46. package/dist/cordova/test/helpers/integration/helpers.d.ts +7 -1
  47. package/dist/cordova/test/integration/flows/password_policy.test.d.ts +17 -0
  48. package/dist/esm2017/{index-e24386e7.js → index-99f8b451.js} +566 -279
  49. package/dist/esm2017/index-99f8b451.js.map +1 -0
  50. package/dist/esm2017/index.js +2 -2
  51. package/dist/esm2017/index.rn.d.ts +11 -3
  52. package/dist/esm2017/internal.js +3 -3
  53. package/dist/esm2017/src/api/errors.d.ts +2 -1
  54. package/dist/esm2017/src/api/index.d.ts +2 -1
  55. package/dist/esm2017/src/api/password_policy/get_password_policy.d.ts +48 -0
  56. package/dist/esm2017/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  57. package/dist/esm2017/src/core/auth/auth_impl.d.ts +8 -2
  58. package/dist/esm2017/src/core/auth/password_policy_impl.d.ts +59 -0
  59. package/dist/esm2017/src/core/auth/password_policy_impl.test.d.ts +17 -0
  60. package/dist/esm2017/src/core/errors.d.ts +3 -1
  61. package/dist/esm2017/src/core/index.d.ts +25 -1
  62. package/dist/esm2017/src/model/auth.d.ts +7 -2
  63. package/dist/esm2017/src/model/password_policy.d.ts +111 -0
  64. package/dist/esm2017/src/model/public_types.d.ts +88 -0
  65. package/dist/esm2017/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  66. package/dist/esm2017/src/platform_node/index.d.ts +1 -0
  67. package/dist/esm2017/test/helpers/integration/helpers.d.ts +7 -1
  68. package/dist/esm2017/test/integration/flows/password_policy.test.d.ts +17 -0
  69. package/dist/esm5/{index-be7bff78.js → index-679880b3.js} +754 -416
  70. package/dist/esm5/index-679880b3.js.map +1 -0
  71. package/dist/esm5/index.js +1 -1
  72. package/dist/esm5/index.rn.d.ts +11 -3
  73. package/dist/esm5/internal.js +2 -2
  74. package/dist/esm5/src/api/errors.d.ts +2 -1
  75. package/dist/esm5/src/api/index.d.ts +2 -1
  76. package/dist/esm5/src/api/password_policy/get_password_policy.d.ts +48 -0
  77. package/dist/esm5/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  78. package/dist/esm5/src/core/auth/auth_impl.d.ts +8 -2
  79. package/dist/esm5/src/core/auth/password_policy_impl.d.ts +59 -0
  80. package/dist/esm5/src/core/auth/password_policy_impl.test.d.ts +17 -0
  81. package/dist/esm5/src/core/errors.d.ts +3 -1
  82. package/dist/esm5/src/core/index.d.ts +25 -1
  83. package/dist/esm5/src/model/auth.d.ts +7 -2
  84. package/dist/esm5/src/model/password_policy.d.ts +111 -0
  85. package/dist/esm5/src/model/public_types.d.ts +88 -0
  86. package/dist/esm5/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  87. package/dist/esm5/src/platform_node/index.d.ts +1 -0
  88. package/dist/esm5/test/helpers/integration/helpers.d.ts +7 -1
  89. package/dist/esm5/test/integration/flows/password_policy.test.d.ts +17 -0
  90. package/dist/index.rn.d.ts +11 -3
  91. package/dist/index.webworker.esm5.js +828 -490
  92. package/dist/index.webworker.esm5.js.map +1 -1
  93. package/dist/node/index.js +2 -1
  94. package/dist/node/index.js.map +1 -1
  95. package/dist/node/index.rn.d.ts +11 -3
  96. package/dist/node/internal.js +2 -1
  97. package/dist/node/internal.js.map +1 -1
  98. package/dist/node/src/api/errors.d.ts +2 -1
  99. package/dist/node/src/api/index.d.ts +2 -1
  100. package/dist/node/src/api/password_policy/get_password_policy.d.ts +48 -0
  101. package/dist/node/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  102. package/dist/node/src/core/auth/auth_impl.d.ts +8 -2
  103. package/dist/node/src/core/auth/password_policy_impl.d.ts +59 -0
  104. package/dist/node/src/core/auth/password_policy_impl.test.d.ts +17 -0
  105. package/dist/node/src/core/errors.d.ts +3 -1
  106. package/dist/node/src/core/index.d.ts +25 -1
  107. package/dist/node/src/model/auth.d.ts +7 -2
  108. package/dist/node/src/model/password_policy.d.ts +111 -0
  109. package/dist/node/src/model/public_types.d.ts +88 -0
  110. package/dist/node/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  111. package/dist/node/src/platform_node/index.d.ts +1 -0
  112. package/dist/node/test/helpers/integration/helpers.d.ts +7 -1
  113. package/dist/node/test/integration/flows/password_policy.test.d.ts +17 -0
  114. package/dist/node/{totp-8a876b1a.js → totp-b4e8736c.js} +717 -378
  115. package/dist/node/totp-b4e8736c.js.map +1 -0
  116. package/dist/node-esm/index.js +1 -1
  117. package/dist/node-esm/index.rn.d.ts +11 -3
  118. package/dist/node-esm/internal.js +2 -2
  119. package/dist/node-esm/src/api/errors.d.ts +2 -1
  120. package/dist/node-esm/src/api/index.d.ts +2 -1
  121. package/dist/node-esm/src/api/password_policy/get_password_policy.d.ts +48 -0
  122. package/dist/node-esm/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  123. package/dist/node-esm/src/core/auth/auth_impl.d.ts +8 -2
  124. package/dist/node-esm/src/core/auth/password_policy_impl.d.ts +59 -0
  125. package/dist/node-esm/src/core/auth/password_policy_impl.test.d.ts +17 -0
  126. package/dist/node-esm/src/core/errors.d.ts +3 -1
  127. package/dist/node-esm/src/core/index.d.ts +25 -1
  128. package/dist/node-esm/src/model/auth.d.ts +7 -2
  129. package/dist/node-esm/src/model/password_policy.d.ts +111 -0
  130. package/dist/node-esm/src/model/public_types.d.ts +88 -0
  131. package/dist/node-esm/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  132. package/dist/node-esm/src/platform_node/index.d.ts +1 -0
  133. package/dist/node-esm/test/helpers/integration/helpers.d.ts +7 -1
  134. package/dist/node-esm/test/integration/flows/password_policy.test.d.ts +17 -0
  135. package/dist/node-esm/{totp-04ac595e.js → totp-ae3f6ed7.js} +554 -267
  136. package/dist/node-esm/totp-ae3f6ed7.js.map +1 -0
  137. package/dist/rn/{phone-2132481b.js → index-8d0ca009.js} +737 -397
  138. package/dist/rn/index-8d0ca009.js.map +1 -0
  139. package/dist/rn/index.js +90 -79
  140. package/dist/rn/index.js.map +1 -1
  141. package/dist/rn/index.rn.d.ts +11 -3
  142. package/dist/rn/internal.js +198 -197
  143. package/dist/rn/internal.js.map +1 -1
  144. package/dist/rn/src/api/errors.d.ts +2 -1
  145. package/dist/rn/src/api/index.d.ts +2 -1
  146. package/dist/rn/src/api/password_policy/get_password_policy.d.ts +48 -0
  147. package/dist/rn/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  148. package/dist/rn/src/core/auth/auth_impl.d.ts +8 -2
  149. package/dist/rn/src/core/auth/password_policy_impl.d.ts +59 -0
  150. package/dist/rn/src/core/auth/password_policy_impl.test.d.ts +17 -0
  151. package/dist/rn/src/core/errors.d.ts +3 -1
  152. package/dist/rn/src/core/index.d.ts +25 -1
  153. package/dist/rn/src/model/auth.d.ts +7 -2
  154. package/dist/rn/src/model/password_policy.d.ts +111 -0
  155. package/dist/rn/src/model/public_types.d.ts +88 -0
  156. package/dist/rn/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  157. package/dist/rn/src/platform_node/index.d.ts +1 -0
  158. package/dist/rn/test/helpers/integration/helpers.d.ts +7 -1
  159. package/dist/rn/test/integration/flows/password_policy.test.d.ts +17 -0
  160. package/dist/src/api/errors.d.ts +2 -1
  161. package/dist/src/api/index.d.ts +2 -1
  162. package/dist/src/api/password_policy/get_password_policy.d.ts +48 -0
  163. package/dist/src/api/password_policy/get_password_policy.test.d.ts +17 -0
  164. package/dist/src/core/auth/auth_impl.d.ts +8 -2
  165. package/dist/src/core/auth/password_policy_impl.d.ts +59 -0
  166. package/dist/src/core/auth/password_policy_impl.test.d.ts +17 -0
  167. package/dist/src/core/errors.d.ts +3 -1
  168. package/dist/src/core/index.d.ts +25 -1
  169. package/dist/src/model/auth.d.ts +7 -2
  170. package/dist/src/model/password_policy.d.ts +111 -0
  171. package/dist/src/model/public_types.d.ts +88 -0
  172. package/dist/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.d.ts +1 -0
  173. package/dist/src/platform_node/index.d.ts +1 -0
  174. package/dist/test/helpers/integration/helpers.d.ts +7 -1
  175. package/dist/test/integration/flows/password_policy.test.d.ts +17 -0
  176. package/package.json +12 -7
  177. package/dist/browser-cjs/index-0b2238be.js.map +0 -1
  178. package/dist/cordova/popup_redirect-71c1ff0a.js.map +0 -1
  179. package/dist/esm2017/index-e24386e7.js.map +0 -1
  180. package/dist/esm5/index-be7bff78.js.map +0 -1
  181. package/dist/node/totp-8a876b1a.js.map +0 -1
  182. package/dist/node-esm/totp-04ac595e.js.map +0 -1
  183. 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 '../../../src/model/public_types';
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 {};
@@ -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-71c1ff0a.js';
3
- export { A as ActionCodeOperation, a4 as ActionCodeURL, w as AuthCredential, t as AuthErrorCodes, E as EmailAuthCredential, B as EmailAuthProvider, C as FacebookAuthProvider, F as FactorId, D as GithubAuthProvider, G as GoogleAuthProvider, x as OAuthCredential, H as OAuthProvider, O as OperationType, y as PhoneAuthCredential, P as ProviderId, I as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, U as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, V as checkActionCode, R as confirmPasswordReset, v as connectAuthEmulator, d as cordovaPopupRedirectResolver, X as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a1 as fetchSignInMethodsForEmail, ac as getAdditionalUserInfo, a9 as getIdToken, aa as getIdTokenResult, ae as getMultiFactorResolver, g as getRedirectResult, z as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, $ as isSignInWithEmailLink, L as linkWithCredential, af as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a5 as parseActionCodeURL, q as prodErrorMap, M as reauthenticateWithCredential, ad as reload, a2 as sendEmailVerification, Q as sendPasswordResetEmail, Z as sendSignInLinkToEmail, s as setPersistence, J as signInAnonymously, K as signInWithCredential, N as signInWithCustomToken, Y as signInWithEmailAndPassword, a0 as signInWithEmailLink, m as signOut, ab as unlink, l as updateCurrentUser, a7 as updateEmail, a8 as updatePassword, a6 as updateProfile, u as useDeviceLanguage, a3 as verifyBeforeUpdateEmail, W as verifyPasswordResetCode } from './popup_redirect-71c1ff0a.js';
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-63074918.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-63074918.js';
4
4
  import 'tslib';
5
5
  import '@firebase/util';
6
6
  import '@firebase/component';
@@ -21,11 +21,19 @@
21
21
  * just use index.ts
22
22
  */
23
23
  import { FirebaseApp } from '@firebase/app';
24
- import { Auth } from './src/model/public_types';
25
- import { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
24
+ import { Auth, Dependencies } from './src/model/public_types';
26
25
  export * from './index.shared';
27
26
  export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
28
27
  export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
29
28
  export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions/phone';
30
- export { getReactNativePersistence };
29
+ export { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
31
30
  export declare function getAuth(app?: FirebaseApp): Auth;
31
+ /**
32
+ * Wrapper around base `initializeAuth()` for RN users only, which
33
+ * shows the warning message if no persistence is provided.
34
+ * Double-checked potential collision with `export * from './index.shared'`
35
+ * as `./index.shared` also exports `initializeAuth()`, and the final
36
+ * bundle does correctly export only this `initializeAuth()` function
37
+ * and not the one from index.shared.
38
+ */
39
+ export declare function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth;
@@ -1,5 +1,5 @@
1
- import { ag as _performApiRequest, ah as _addTidIfNecessary, ai as _assert, aj as Delay, ak as _window, al as isV2, am as _createError, an as _loadJS, ao as _generateCallbackName, ap as getRecaptchaParams, aq as _isHttpOrHttps, ar as _isWorker, as as _castAuth, K as signInWithCredential, L as linkWithCredential, at as _assertLinkedStatus, M as reauthenticateWithCredential, au as sendPhoneVerificationCode, av as startEnrollPhoneMfa, aw as _link, y as PhoneAuthCredential, ax as debugAssert, ay as _generateEventId, az as AbstractPopupRedirectOperation, aA as _assertInstanceOf, aB as _withDefaultResolver, aC as FederatedAuthProvider, aD as _fail, aE as _getProjectConfig, aF as _getCurrentUrl, aG as _emulatorUrl, aH as _isChromeIOS, aI as _isFirefox, aJ as _isIOSStandalone, aK as _getRedirectUrl, aL as _setWindowLocation, aM as _isMobileBrowser, aN as _isSafari, aO as _isIOS, f as browserSessionPersistence, aP as _getRedirectResult, aQ as _overrideRedirectResult, aR as AuthEventManager, aS as debugFail, aT as finalizeEnrollPhoneMfa, aU as finalizeEnrollTotpMfa, aV as startEnrollTotpMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence, j as beforeAuthStateChanged, o as onIdTokenChanged, v as connectAuthEmulator } from './popup_redirect-71c1ff0a.js';
2
- export { A as ActionCodeOperation, a4 as ActionCodeURL, w as AuthCredential, t as AuthErrorCodes, aZ as AuthImpl, E as EmailAuthCredential, B as EmailAuthProvider, C as FacebookAuthProvider, F as FactorId, a$ as FetchProvider, D as GithubAuthProvider, G as GoogleAuthProvider, x as OAuthCredential, H as OAuthProvider, O as OperationType, y as PhoneAuthCredential, P as ProviderId, b0 as SAMLAuthCredential, I as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aX as UserImpl, ai as _assert, as as _castAuth, aD as _fail, ay as _generateEventId, a_ as _getClientVersion, aY as _getInstance, aP as _getRedirectResult, aQ as _overrideRedirectResult, aW as _persistenceKeyName, U as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, V as checkActionCode, R as confirmPasswordReset, v as connectAuthEmulator, d as cordovaPopupRedirectResolver, X as createUserWithEmailAndPassword, p as debugErrorMap, n as deleteUser, a1 as fetchSignInMethodsForEmail, ac as getAdditionalUserInfo, a9 as getIdToken, aa as getIdTokenResult, ae as getMultiFactorResolver, g as getRedirectResult, z as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, $ as isSignInWithEmailLink, L as linkWithCredential, b2 as linkWithRedirect, af as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a5 as parseActionCodeURL, q as prodErrorMap, M as reauthenticateWithCredential, b3 as reauthenticateWithRedirect, ad as reload, a2 as sendEmailVerification, Q as sendPasswordResetEmail, Z as sendSignInLinkToEmail, s as setPersistence, J as signInAnonymously, K as signInWithCredential, N as signInWithCustomToken, Y as signInWithEmailAndPassword, a0 as signInWithEmailLink, b1 as signInWithRedirect, m as signOut, ab as unlink, l as updateCurrentUser, a7 as updateEmail, a8 as updatePassword, a6 as updateProfile, u as useDeviceLanguage, a3 as verifyBeforeUpdateEmail, W as verifyPasswordResetCode } from './popup_redirect-71c1ff0a.js';
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-63074918.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-63074918.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';