@rxap/firebase 21.0.1 → 22.0.0-dev.0

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 (174) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/compodoc/changelog.html +5 -0
  3. package/compodoc/dependencies.html +4 -4
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +167 -167
  7. package/docs/html/classes/AppCheckService.html +2 -2
  8. package/docs/html/classes/FirebaseAppCheckHttpInterceptor.html +3 -3
  9. package/docs/html/classes/RxapFirebaseMessagingService.html +2 -2
  10. package/docs/html/functions/AnalyticsEnabledFactory.html +1 -1
  11. package/docs/html/functions/AppCheckEnabledFactory.html +1 -1
  12. package/docs/html/functions/AppCheckSiteKeyFactory.html +1 -1
  13. package/docs/html/functions/AppIsTokenAutoRefreshEnabledFactory.html +1 -1
  14. package/docs/html/functions/AuthLanguageCodeFactory.html +1 -1
  15. package/docs/html/functions/AuthPersistenceFactory.html +1 -1
  16. package/docs/html/functions/AuthSettingsFactory.html +1 -1
  17. package/docs/html/functions/AuthTenantIdFactory.html +1 -1
  18. package/docs/html/functions/AuthUseDeviceLanguageFactory.html +1 -1
  19. package/docs/html/functions/DataCollectionEnabledFactory.html +1 -1
  20. package/docs/html/functions/EnablePersistenceTokenFactory.html +1 -1
  21. package/docs/html/functions/FirebaseNameOrConfigTokenFactory.html +1 -1
  22. package/docs/html/functions/FirebaseOptionsTokenFactory.html +1 -1
  23. package/docs/html/functions/FirestoreSettingsTokenFactory.html +1 -1
  24. package/docs/html/functions/FunctionsNewOriginBehaviorFactory.html +1 -1
  25. package/docs/html/functions/FunctionsOriginFactory.html +1 -1
  26. package/docs/html/functions/FunctionsRegionFactory.html +1 -1
  27. package/docs/html/functions/GetAnalyticsAppName.html +1 -1
  28. package/docs/html/functions/InstrumentationEnabledFactory.html +1 -1
  29. package/docs/html/functions/PersistenceSettingsTokenFactory.html +1 -1
  30. package/docs/html/functions/ServiceWorkerFactory.html +1 -1
  31. package/docs/html/functions/StorageBucketFactory.html +1 -1
  32. package/docs/html/functions/StorageMaxOperationRetryTimeFactory.html +1 -1
  33. package/docs/html/functions/StorageMaxUploadRetryTimeFactory.html +1 -1
  34. package/docs/html/functions/UseAuthEmulatorFactory.html +1 -1
  35. package/docs/html/functions/UseFirestoreEmulatorFactory.html +1 -1
  36. package/docs/html/functions/UseFunctionsEmulatorFactory.html +1 -1
  37. package/docs/html/functions/VapidKeyFactory.html +1 -1
  38. package/docs/html/functions/provideAngularFireAppCheck.html +2 -2
  39. package/docs/html/functions/provideAngularFireStorageEmulator.html +2 -2
  40. package/docs/html/index.html +2 -2
  41. package/docs/html/interfaces/FirebaseConfig.html +2 -2
  42. package/docs/html/interfaces/Message.html +2 -2
  43. package/docs/html/modules.html +1 -1
  44. package/docs/html/variables/APP_CHECK_ENABLED.html +1 -1
  45. package/docs/html/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.html +1 -1
  46. package/docs/html/variables/APP_CHECK_SITE_KEY.html +1 -1
  47. package/docs/html/variables/FIREBASE_ANALYTICS_PROVIDERS.html +1 -1
  48. package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.html +1 -1
  49. package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.html +1 -1
  50. package/docs/html/variables/FIREBASE_APP_CHECK_PROVIDERS.html +1 -1
  51. package/docs/html/variables/FIREBASE_APP_PROVIDERS.html +1 -1
  52. package/docs/html/variables/FIREBASE_AUTH_PROVIDERS.html +1 -1
  53. package/docs/html/variables/FIREBASE_FIRESTORE_PROVIDERS.html +1 -1
  54. package/docs/html/variables/FIREBASE_FUNCTIONS_PROVIDERS.html +1 -1
  55. package/docs/html/variables/FIREBASE_MESSAGING_PROVIDERS.html +1 -1
  56. package/docs/html/variables/FIREBASE_PERFORMANCE_PROVIDERS.html +1 -1
  57. package/docs/html/variables/FIREBASE_PROVIDERS.html +1 -1
  58. package/docs/html/variables/FIREBASE_STORAGE_PROVIDERS.html +1 -1
  59. package/docs/html/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.html +1 -1
  60. package/docs/html/variables/USE_STORAGE_EMULATOR.html +1 -1
  61. package/docs/markdown/README.md +1 -1
  62. package/docs/markdown/classes/AppCheckService.md +6 -6
  63. package/docs/markdown/classes/FirebaseAppCheckHttpInterceptor.md +5 -5
  64. package/docs/markdown/classes/RxapFirebaseMessagingService.md +8 -8
  65. package/docs/markdown/functions/AnalyticsEnabledFactory.md +2 -2
  66. package/docs/markdown/functions/AppCheckEnabledFactory.md +2 -2
  67. package/docs/markdown/functions/AppCheckSiteKeyFactory.md +2 -2
  68. package/docs/markdown/functions/AppIsTokenAutoRefreshEnabledFactory.md +2 -2
  69. package/docs/markdown/functions/AuthLanguageCodeFactory.md +2 -2
  70. package/docs/markdown/functions/AuthPersistenceFactory.md +2 -2
  71. package/docs/markdown/functions/AuthSettingsFactory.md +2 -2
  72. package/docs/markdown/functions/AuthTenantIdFactory.md +2 -2
  73. package/docs/markdown/functions/AuthUseDeviceLanguageFactory.md +2 -2
  74. package/docs/markdown/functions/DataCollectionEnabledFactory.md +2 -2
  75. package/docs/markdown/functions/EnablePersistenceTokenFactory.md +2 -2
  76. package/docs/markdown/functions/FirebaseNameOrConfigTokenFactory.md +2 -2
  77. package/docs/markdown/functions/FirebaseOptionsTokenFactory.md +2 -2
  78. package/docs/markdown/functions/FirestoreSettingsTokenFactory.md +2 -2
  79. package/docs/markdown/functions/FunctionsNewOriginBehaviorFactory.md +2 -2
  80. package/docs/markdown/functions/FunctionsOriginFactory.md +2 -2
  81. package/docs/markdown/functions/FunctionsRegionFactory.md +2 -2
  82. package/docs/markdown/functions/GetAnalyticsAppName.md +2 -2
  83. package/docs/markdown/functions/InstrumentationEnabledFactory.md +2 -2
  84. package/docs/markdown/functions/PersistenceSettingsTokenFactory.md +2 -2
  85. package/docs/markdown/functions/ServiceWorkerFactory.md +2 -2
  86. package/docs/markdown/functions/StorageBucketFactory.md +2 -2
  87. package/docs/markdown/functions/StorageMaxOperationRetryTimeFactory.md +2 -2
  88. package/docs/markdown/functions/StorageMaxUploadRetryTimeFactory.md +2 -2
  89. package/docs/markdown/functions/UseAuthEmulatorFactory.md +2 -2
  90. package/docs/markdown/functions/UseFirestoreEmulatorFactory.md +2 -2
  91. package/docs/markdown/functions/UseFunctionsEmulatorFactory.md +2 -2
  92. package/docs/markdown/functions/VapidKeyFactory.md +2 -2
  93. package/docs/markdown/functions/provideAngularFireAppCheck.md +2 -2
  94. package/docs/markdown/functions/provideAngularFireStorageEmulator.md +2 -2
  95. package/docs/markdown/globals.md +2 -2
  96. package/docs/markdown/interfaces/FirebaseConfig.md +3 -3
  97. package/docs/markdown/interfaces/Message.md +5 -5
  98. package/docs/markdown/variables/APP_CHECK_ENABLED.md +2 -2
  99. package/docs/markdown/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +2 -2
  100. package/docs/markdown/variables/APP_CHECK_SITE_KEY.md +2 -2
  101. package/docs/markdown/variables/FIREBASE_ANALYTICS_PROVIDERS.md +2 -2
  102. package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +2 -2
  103. package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +2 -2
  104. package/docs/markdown/variables/FIREBASE_APP_CHECK_PROVIDERS.md +2 -2
  105. package/docs/markdown/variables/FIREBASE_APP_PROVIDERS.md +2 -2
  106. package/docs/markdown/variables/FIREBASE_AUTH_PROVIDERS.md +2 -2
  107. package/docs/markdown/variables/FIREBASE_FIRESTORE_PROVIDERS.md +2 -2
  108. package/docs/markdown/variables/FIREBASE_FUNCTIONS_PROVIDERS.md +2 -2
  109. package/docs/markdown/variables/FIREBASE_MESSAGING_PROVIDERS.md +2 -2
  110. package/docs/markdown/variables/FIREBASE_PERFORMANCE_PROVIDERS.md +2 -2
  111. package/docs/markdown/variables/FIREBASE_PROVIDERS.md +2 -2
  112. package/docs/markdown/variables/FIREBASE_STORAGE_PROVIDERS.md +2 -2
  113. package/docs/markdown/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +2 -2
  114. package/docs/markdown/variables/USE_STORAGE_EMULATOR.md +2 -2
  115. package/docs/wiki/Class.AppCheckService.md +5 -5
  116. package/docs/wiki/Class.FirebaseAppCheckHttpInterceptor.md +4 -4
  117. package/docs/wiki/Class.RxapFirebaseMessagingService.md +7 -7
  118. package/docs/wiki/Function.AnalyticsEnabledFactory.md +1 -1
  119. package/docs/wiki/Function.AppCheckEnabledFactory.md +1 -1
  120. package/docs/wiki/Function.AppCheckSiteKeyFactory.md +1 -1
  121. package/docs/wiki/Function.AppIsTokenAutoRefreshEnabledFactory.md +1 -1
  122. package/docs/wiki/Function.AuthLanguageCodeFactory.md +1 -1
  123. package/docs/wiki/Function.AuthPersistenceFactory.md +1 -1
  124. package/docs/wiki/Function.AuthSettingsFactory.md +1 -1
  125. package/docs/wiki/Function.AuthTenantIdFactory.md +1 -1
  126. package/docs/wiki/Function.AuthUseDeviceLanguageFactory.md +1 -1
  127. package/docs/wiki/Function.DataCollectionEnabledFactory.md +1 -1
  128. package/docs/wiki/Function.EnablePersistenceTokenFactory.md +1 -1
  129. package/docs/wiki/Function.FirebaseNameOrConfigTokenFactory.md +1 -1
  130. package/docs/wiki/Function.FirebaseOptionsTokenFactory.md +1 -1
  131. package/docs/wiki/Function.FirestoreSettingsTokenFactory.md +1 -1
  132. package/docs/wiki/Function.FunctionsNewOriginBehaviorFactory.md +1 -1
  133. package/docs/wiki/Function.FunctionsOriginFactory.md +1 -1
  134. package/docs/wiki/Function.FunctionsRegionFactory.md +1 -1
  135. package/docs/wiki/Function.GetAnalyticsAppName.md +1 -1
  136. package/docs/wiki/Function.InstrumentationEnabledFactory.md +1 -1
  137. package/docs/wiki/Function.PersistenceSettingsTokenFactory.md +1 -1
  138. package/docs/wiki/Function.ServiceWorkerFactory.md +1 -1
  139. package/docs/wiki/Function.StorageBucketFactory.md +1 -1
  140. package/docs/wiki/Function.StorageMaxOperationRetryTimeFactory.md +1 -1
  141. package/docs/wiki/Function.StorageMaxUploadRetryTimeFactory.md +1 -1
  142. package/docs/wiki/Function.UseAuthEmulatorFactory.md +1 -1
  143. package/docs/wiki/Function.UseFirestoreEmulatorFactory.md +1 -1
  144. package/docs/wiki/Function.UseFunctionsEmulatorFactory.md +1 -1
  145. package/docs/wiki/Function.VapidKeyFactory.md +1 -1
  146. package/docs/wiki/Function.provideAngularFireAppCheck.md +1 -1
  147. package/docs/wiki/Function.provideAngularFireStorageEmulator.md +1 -1
  148. package/docs/wiki/Interface.FirebaseConfig.md +2 -2
  149. package/docs/wiki/Interface.Message.md +4 -4
  150. package/docs/wiki/Variable.APP_CHECK_ENABLED.md +1 -1
  151. package/docs/wiki/Variable.APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +1 -1
  152. package/docs/wiki/Variable.APP_CHECK_SITE_KEY.md +1 -1
  153. package/docs/wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS.md +1 -1
  154. package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +1 -1
  155. package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +1 -1
  156. package/docs/wiki/Variable.FIREBASE_APP_CHECK_PROVIDERS.md +1 -1
  157. package/docs/wiki/Variable.FIREBASE_APP_PROVIDERS.md +1 -1
  158. package/docs/wiki/Variable.FIREBASE_AUTH_PROVIDERS.md +1 -1
  159. package/docs/wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS.md +1 -1
  160. package/docs/wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS.md +1 -1
  161. package/docs/wiki/Variable.FIREBASE_MESSAGING_PROVIDERS.md +1 -1
  162. package/docs/wiki/Variable.FIREBASE_PERFORMANCE_PROVIDERS.md +1 -1
  163. package/docs/wiki/Variable.FIREBASE_PROVIDERS.md +1 -1
  164. package/docs/wiki/Variable.FIREBASE_STORAGE_PROVIDERS.md +1 -1
  165. package/docs/wiki/Variable.RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +1 -1
  166. package/docs/wiki/Variable.USE_STORAGE_EMULATOR.md +1 -1
  167. package/docs/wiki/globals.md +1 -1
  168. package/fesm2022/rxap-firebase-auth.mjs +99 -98
  169. package/fesm2022/rxap-firebase-auth.mjs.map +1 -1
  170. package/fesm2022/rxap-firebase.mjs +365 -374
  171. package/fesm2022/rxap-firebase.mjs.map +1 -1
  172. package/package.json +11 -11
  173. package/types/rxap-firebase-auth.d.ts +28 -29
  174. package/types/rxap-firebase.d.ts +174 -181
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **EnablePersistenceTokenFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:65](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L65)
7
+ Defined in: [firebase.provider.ts:65](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L65)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FirebaseNameOrConfigTokenFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:61](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L61)
7
+ Defined in: [firebase.provider.ts:61](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L61)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FirebaseOptionsTokenFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:57](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L57)
7
+ Defined in: [firebase.provider.ts:57](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L57)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FirestoreSettingsTokenFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:73](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L73)
7
+ Defined in: [firebase.provider.ts:73](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L73)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FunctionsNewOriginBehaviorFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:85](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L85)
7
+ Defined in: [firebase.provider.ts:85](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L85)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FunctionsOriginFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:81](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L81)
7
+ Defined in: [firebase.provider.ts:81](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L81)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **FunctionsRegionFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:77](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L77)
7
+ Defined in: [firebase.provider.ts:77](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L77)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **GetAnalyticsAppName**(`config`): `undefined` \| `string`
6
6
 
7
- Defined in: [firebase.provider.ts:105](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L105)
7
+ Defined in: [firebase.provider.ts:105](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L105)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **InstrumentationEnabledFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:89](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L89)
7
+ Defined in: [firebase.provider.ts:89](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L89)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **PersistenceSettingsTokenFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:69](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L69)
7
+ Defined in: [firebase.provider.ts:69](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L69)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ServiceWorkerFactory**(): `false` \| `Promise`\<`undefined` \| `ServiceWorkerRegistration`\>
6
6
 
7
- Defined in: [firebase.provider.ts:165](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L165)
7
+ Defined in: [firebase.provider.ts:165](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L165)
8
8
 
9
9
  ## Returns
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **StorageBucketFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:153](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L153)
7
+ Defined in: [firebase.provider.ts:153](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L153)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **StorageMaxOperationRetryTimeFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:161](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L161)
7
+ Defined in: [firebase.provider.ts:161](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L161)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **StorageMaxUploadRetryTimeFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:157](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L157)
7
+ Defined in: [firebase.provider.ts:157](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L157)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **UseAuthEmulatorFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:117](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L117)
7
+ Defined in: [firebase.provider.ts:117](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L117)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **UseFirestoreEmulatorFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:109](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L109)
7
+ Defined in: [firebase.provider.ts:109](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L109)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **UseFunctionsEmulatorFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:113](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L113)
7
+ Defined in: [firebase.provider.ts:113](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L113)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **VapidKeyFactory**(`configService`): `any`
6
6
 
7
- Defined in: [firebase.provider.ts:97](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L97)
7
+ Defined in: [firebase.provider.ts:97](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L97)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **provideAngularFireAppCheck**(): `EnvironmentProviders`
6
6
 
7
- Defined in: [app-check.ts:94](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/app-check.ts#L94)
7
+ Defined in: [app-check.ts:94](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/app-check.ts#L94)
8
8
 
9
9
  Registers the AppCheckService and eagerly instantiates it on app initialization
10
10
  (replaces the former RxapAngularFireAppCheckModule).
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **provideAngularFireStorageEmulator**(): `EnvironmentProviders`
6
6
 
7
- Defined in: [storage.ts:16](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/storage.ts#L16)
7
+ Defined in: [storage.ts:16](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/storage.ts#L16)
8
8
 
9
9
  Connects the AngularFireStorage to the emulator if USE_STORAGE_EMULATOR is provided
10
10
  (replaces the former RxapAngularFireStorageModule).
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: FirebaseConfig
4
4
 
5
- Defined in: [firebase.config.ts:7](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.config.ts#L7)
5
+ Defined in: [firebase.config.ts:7](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.config.ts#L7)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [firebase.config.ts:7](https://gitlab.com/rxap/packages/-/blob/61502
10
10
 
11
11
  > **firebase**: `null` \| \{ `analytics`: \{ `enabled`: `boolean`; \}; `appCheck`: \{ `isTokenAutoRefreshEnabled`: `boolean`; `siteKey`: `string`; \}; `auth`: \{ `facebook`: `boolean`; `github`: `boolean`; `google`: `boolean`; `languageCode`: `string`; `persistence`: `boolean`; `settings`: `AuthSettings`; `tenantId`: `string`; `twitter`: `boolean`; `useDeviceLanguage`: `boolean`; \}; `emulator`: \{ `auth`: \[`string`, `number`\]; `firestore`: \[`string`, `number`\]; `functions`: \[`string`, `number`\]; \}; `firestore`: \{ `enablePersistence`: `boolean`; `persistenceSettings`: `PersistenceSettings`; `settings`: `FirestoreSettings`; \}; `functions`: \{ `origin`: `null` \| `string`; `region`: `null` \| `string`; \}; `messaging`: \{ `vapid`: `null` \| `string`; \}; `name`: `null` \| `string`; `options`: \{ `apiKey`: `string`; `appId`: `string`; `authDomain`: `string`; `databaseURL`: `string`; `messagingSenderId`: `string`; `projectId`: `string`; `storageBucket`: `string`; \}; `origin`: `null` \| `string`; `region`: `null` \| `string`; `storage`: \{ `bucket`: `string`; `maxOperationRetryTime`: `number`; `maxUploadRetryTime`: `number`; \}; `storageBucket`: `null` \| `string`; `vapid`: `null` \| `string`; \}
12
12
 
13
- Defined in: [firebase.config.ts:8](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.config.ts#L8)
13
+ Defined in: [firebase.config.ts:8](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.config.ts#L8)
14
14
 
15
15
  #### Type declaration
16
16
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: Message
4
4
 
5
- Defined in: [firebase-messaging.service.ts:10](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L10)
5
+ Defined in: [firebase-messaging.service.ts:10](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L10)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [firebase-messaging.service.ts:10](https://gitlab.com/rxap/packages/
10
10
 
11
11
  > **collapse\_key**: `string`
12
12
 
13
- Defined in: [firebase-messaging.service.ts:11](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L11)
13
+ Defined in: [firebase-messaging.service.ts:11](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L11)
14
14
 
15
15
  ***
16
16
 
@@ -18,7 +18,7 @@ Defined in: [firebase-messaging.service.ts:11](https://gitlab.com/rxap/packages/
18
18
 
19
19
  > **from**: `string`
20
20
 
21
- Defined in: [firebase-messaging.service.ts:12](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L12)
21
+ Defined in: [firebase-messaging.service.ts:12](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L12)
22
22
 
23
23
  ***
24
24
 
@@ -26,7 +26,7 @@ Defined in: [firebase-messaging.service.ts:12](https://gitlab.com/rxap/packages/
26
26
 
27
27
  > **notification**: `object`
28
28
 
29
- Defined in: [firebase-messaging.service.ts:13](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L13)
29
+ Defined in: [firebase-messaging.service.ts:13](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase-messaging.service.ts#L13)
30
30
 
31
31
  #### body
32
32
 
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **APP\_CHECK\_ENABLED**: `InjectionToken`\<`unknown`\>
6
6
 
7
- Defined in: [tokens.ts:4](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/tokens.ts#L4)
7
+ Defined in: [tokens.ts:4](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/tokens.ts#L4)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **APP\_CHECK\_IS\_TOKEN\_AUTO\_REFRESH\_ENABLED**: `InjectionToken`\<`unknown`\>
6
6
 
7
- Defined in: [tokens.ts:6](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/tokens.ts#L6)
7
+ Defined in: [tokens.ts:6](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/tokens.ts#L6)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **APP\_CHECK\_SITE\_KEY**: `InjectionToken`\<`unknown`\>
6
6
 
7
- Defined in: [tokens.ts:5](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/tokens.ts#L5)
7
+ Defined in: [tokens.ts:5](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/tokens.ts#L5)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_ANALYTICS\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:259](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L259)
7
+ Defined in: [firebase.provider.ts:259](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L259)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_APP\_CHECK\_HTTP\_INTERCEPTOR**: `Provider`
6
6
 
7
- Defined in: [firebase-app-check.http-interceptor.ts:55](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase-app-check.http-interceptor.ts#L55)
7
+ Defined in: [firebase-app-check.http-interceptor.ts:55](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase-app-check.http-interceptor.ts#L55)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_APP\_CHECK\_HTTP\_INTERCEPTOR\_URL\_PATTERN**: `InjectionToken`\<`RegExp`\>
6
6
 
7
- Defined in: [tokens.ts:8](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/tokens.ts#L8)
7
+ Defined in: [tokens.ts:8](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/tokens.ts#L8)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_APP\_CHECK\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:305](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L305)
7
+ Defined in: [firebase.provider.ts:305](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L305)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_APP\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:169](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L169)
7
+ Defined in: [firebase.provider.ts:169](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L169)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_AUTH\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:272](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L272)
7
+ Defined in: [firebase.provider.ts:272](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L272)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_FIRESTORE\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:192](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L192)
7
+ Defined in: [firebase.provider.ts:192](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L192)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_FUNCTIONS\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:215](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L215)
7
+ Defined in: [firebase.provider.ts:215](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L215)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_MESSAGING\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:233](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L233)
7
+ Defined in: [firebase.provider.ts:233](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L233)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_PERFORMANCE\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:246](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L246)
7
+ Defined in: [firebase.provider.ts:246](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L246)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:342](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L342)
7
+ Defined in: [firebase.provider.ts:342](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L342)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **FIREBASE\_STORAGE\_PROVIDERS**: `Provider`[]
6
6
 
7
- Defined in: [firebase.provider.ts:324](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/firebase.provider.ts#L324)
7
+ Defined in: [firebase.provider.ts:324](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/firebase.provider.ts#L324)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **RXAP\_REQUEST\_CLOUD\_MESSAGING\_TOKEN**: `InjectionToken`\<`unknown`\>
6
6
 
7
- Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/tokens.ts#L3)
7
+ Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/tokens.ts#L3)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **USE\_STORAGE\_EMULATOR**: `InjectionToken`\<\[`string`, `number`\]\>
6
6
 
7
- Defined in: [storage.ts:10](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/firebase/src/lib/storage.ts#L10)
7
+ Defined in: [storage.ts:10](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/storage.ts#L10)
@@ -1,4 +1,4 @@
1
- # @rxap/firebase v21.0.1
1
+ # @rxap/firebase v22.0.0-dev.0
2
2
 
3
3
  ## Classes
4
4
 
@@ -1,101 +1,102 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, Injectable } from '@angular/core';
4
- import { Auth, idToken, authState, sendPasswordResetEmail, confirmPasswordReset, signInWithEmailAndPassword, signOut, GoogleAuthProvider, GithubAuthProvider, FacebookAuthProvider, TwitterAuthProvider, signInWithPopup, signInWithRedirect } from '@angular/fire/auth';
5
- import { isDefined } from '@rxap/rxjs';
6
- import { coerceArray } from '@rxap/utilities';
7
- import { tap, switchMap, catchError, take, map } from 'rxjs/operators';
8
- import { BehaviorSubject, EMPTY, firstValueFrom } from 'rxjs';
9
- import { traceUntilFirst } from '@angular/fire/performance';
10
-
11
- const IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN = new InjectionToken('identity-platform-http-interceptor-url-pattern');
1
+ import { HttpErrorResponse } from "@angular/common/http";
2
+ import * as i0 from "@angular/core";
3
+ import { Injectable, InjectionToken, inject } from "@angular/core";
4
+ import { Auth, FacebookAuthProvider, GithubAuthProvider, GoogleAuthProvider, TwitterAuthProvider, authState, confirmPasswordReset, idToken, sendPasswordResetEmail, signInWithEmailAndPassword, signInWithPopup, signInWithRedirect, signOut } from "@angular/fire/auth";
5
+ import { isDefined } from "@rxap/rxjs";
6
+ import { coerceArray } from "@rxap/utilities";
7
+ import { catchError, map, switchMap, take, tap } from "rxjs/operators";
8
+ import { BehaviorSubject, EMPTY, firstValueFrom } from "rxjs";
9
+ import { traceUntilFirst } from "@angular/fire/performance";
10
+ const IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN = new InjectionToken("identity-platform-http-interceptor-url-pattern");
12
11
  const IdentityPlatformHttpInterceptor = (req, next) => {
13
- const urlPattern = coerceArray(inject(IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN, { optional: true }) ?? []);
14
- const auth = inject(Auth);
15
- const isMatch = (req) => {
16
- return urlPattern.some(pattern => req.url.match(pattern));
17
- };
18
- if (isMatch(req)) {
19
- return idToken(auth).pipe(tap(idTokenValue => {
20
- if (!idTokenValue) {
21
- throw new Error(`The isToken is not defined. Ensure that the user is logged in, before sending a request to '${req.url}'`);
22
- }
23
- }), isDefined(), switchMap(idTokenValue => next(req.clone({
24
- setHeaders: {
25
- idToken: idTokenValue,
26
- },
27
- })).pipe(catchError(error => {
28
- if (error instanceof HttpErrorResponse) {
29
- if (error.status === 401) {
30
- auth.signOut().then(() => location.reload());
31
- }
32
- }
33
- throw error;
34
- }))));
35
- }
36
- return next(req);
12
+ const urlPattern = coerceArray(inject(IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN, { optional: true }) ?? []);
13
+ const auth = inject(Auth);
14
+ const isMatch = (req) => {
15
+ return urlPattern.some((pattern) => req.url.match(pattern));
16
+ };
17
+ if (isMatch(req)) return idToken(auth).pipe(tap((idTokenValue) => {
18
+ if (!idTokenValue) throw new Error(`The isToken is not defined. Ensure that the user is logged in, before sending a request to '${req.url}'`);
19
+ }), isDefined(), switchMap((idTokenValue) => next(req.clone({ setHeaders: { idToken: idTokenValue } })).pipe(catchError((error) => {
20
+ if (error instanceof HttpErrorResponse) {
21
+ if (error.status === 401) auth.signOut().then(() => location.reload());
22
+ }
23
+ throw error;
24
+ }))));
25
+ return next(req);
37
26
  };
38
-
39
- class IdentityPlatformService {
40
- constructor() {
41
- this.auth = inject(Auth);
42
- this.isAuthenticated$ = new BehaviorSubject(null);
43
- this.user = EMPTY;
44
- this.user = authState(this.auth);
45
- this.isAuthenticated().then(isAuthenticated => this.isAuthenticated$.next(isAuthenticated));
46
- }
47
- async requestPasswordReset(email) {
48
- await sendPasswordResetEmail(this.auth, email);
49
- return true;
50
- }
51
- async sendPasswordReset(password, token) {
52
- await confirmPasswordReset(this.auth, token, password);
53
- return true;
54
- }
55
- async signInWithEmailAndPassword(email, password, remember) {
56
- await signInWithEmailAndPassword(this.auth, email, password);
57
- this.isAuthenticated$.next(true);
58
- return true;
59
- }
60
- async signOut() {
61
- await signOut(this.auth);
62
- this.isAuthenticated$.next(false);
63
- return true;
64
- }
65
- google(popup = true) {
66
- return this.withProvider(new GoogleAuthProvider(), popup);
67
- }
68
- github(popup = true) {
69
- return this.withProvider(new GithubAuthProvider(), popup);
70
- }
71
- facebook(popup = true) {
72
- return this.withProvider(new FacebookAuthProvider(), popup);
73
- }
74
- twitter(popup = true) {
75
- return this.withProvider(new TwitterAuthProvider(), popup);
76
- }
77
- isAuthenticated() {
78
- return firstValueFrom(authState(this.auth).pipe(traceUntilFirst('auth'), take(1), map(Boolean)));
79
- }
80
- async withProvider(provider, popup = true) {
81
- const signIn = popup ? signInWithPopup(this.auth, provider) : signInWithRedirect(this.auth, provider);
82
- await signIn;
83
- this.isAuthenticated$.next(true);
84
- return true;
85
- }
86
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IdentityPlatformService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
87
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IdentityPlatformService }); }
88
- }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IdentityPlatformService, decorators: [{
90
- type: Injectable
91
- }], ctorParameters: () => [] });
92
-
93
- // region
94
- // endregion
95
-
96
- /**
97
- * Generated bundle index. Do not edit.
98
- */
99
-
27
+ var IdentityPlatformService = class IdentityPlatformService {
28
+ constructor() {
29
+ this.auth = inject(Auth);
30
+ this.isAuthenticated$ = new BehaviorSubject(null);
31
+ this.user = EMPTY;
32
+ this.user = authState(this.auth);
33
+ this.isAuthenticated().then((isAuthenticated) => this.isAuthenticated$.next(isAuthenticated));
34
+ }
35
+ async requestPasswordReset(email) {
36
+ await sendPasswordResetEmail(this.auth, email);
37
+ return true;
38
+ }
39
+ async sendPasswordReset(password, token) {
40
+ await confirmPasswordReset(this.auth, token, password);
41
+ return true;
42
+ }
43
+ async signInWithEmailAndPassword(email, password, remember) {
44
+ await signInWithEmailAndPassword(this.auth, email, password);
45
+ this.isAuthenticated$.next(true);
46
+ return true;
47
+ }
48
+ async signOut() {
49
+ await signOut(this.auth);
50
+ this.isAuthenticated$.next(false);
51
+ return true;
52
+ }
53
+ google(popup = true) {
54
+ return this.withProvider(new GoogleAuthProvider(), popup);
55
+ }
56
+ github(popup = true) {
57
+ return this.withProvider(new GithubAuthProvider(), popup);
58
+ }
59
+ facebook(popup = true) {
60
+ return this.withProvider(new FacebookAuthProvider(), popup);
61
+ }
62
+ twitter(popup = true) {
63
+ return this.withProvider(new TwitterAuthProvider(), popup);
64
+ }
65
+ isAuthenticated() {
66
+ return firstValueFrom(authState(this.auth).pipe(traceUntilFirst("auth"), take(1), map(Boolean)));
67
+ }
68
+ async withProvider(provider, popup = true) {
69
+ await (popup ? signInWithPopup(this.auth, provider) : signInWithRedirect(this.auth, provider));
70
+ this.isAuthenticated$.next(true);
71
+ return true;
72
+ }
73
+ static {
74
+ this.ɵfac = i0.ɵɵngDeclareFactory({
75
+ minVersion: "12.0.0",
76
+ version: "22.3.0",
77
+ ngImport: i0,
78
+ type: IdentityPlatformService,
79
+ deps: [],
80
+ target: i0.ɵɵFactoryTarget.Injectable
81
+ });
82
+ }
83
+ static {
84
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
85
+ minVersion: "12.0.0",
86
+ version: "22.3.0",
87
+ ngImport: i0,
88
+ type: IdentityPlatformService
89
+ });
90
+ }
91
+ };
92
+ i0.ɵɵngDeclareClassMetadata({
93
+ minVersion: "12.0.0",
94
+ version: "22.3.0",
95
+ ngImport: i0,
96
+ type: IdentityPlatformService,
97
+ decorators: [{ type: Injectable }],
98
+ ctorParameters: () => []
99
+ });
100
100
  export { IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN, IdentityPlatformHttpInterceptor, IdentityPlatformService };
101
- //# sourceMappingURL=rxap-firebase-auth.mjs.map
101
+
102
+ //# sourceMappingURL=rxap-firebase-auth.mjs.map