@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.
- package/CHANGELOG.md +6 -0
- package/compodoc/changelog.html +5 -0
- package/compodoc/dependencies.html +4 -4
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +167 -167
- package/docs/html/classes/AppCheckService.html +2 -2
- package/docs/html/classes/FirebaseAppCheckHttpInterceptor.html +3 -3
- package/docs/html/classes/RxapFirebaseMessagingService.html +2 -2
- package/docs/html/functions/AnalyticsEnabledFactory.html +1 -1
- package/docs/html/functions/AppCheckEnabledFactory.html +1 -1
- package/docs/html/functions/AppCheckSiteKeyFactory.html +1 -1
- package/docs/html/functions/AppIsTokenAutoRefreshEnabledFactory.html +1 -1
- package/docs/html/functions/AuthLanguageCodeFactory.html +1 -1
- package/docs/html/functions/AuthPersistenceFactory.html +1 -1
- package/docs/html/functions/AuthSettingsFactory.html +1 -1
- package/docs/html/functions/AuthTenantIdFactory.html +1 -1
- package/docs/html/functions/AuthUseDeviceLanguageFactory.html +1 -1
- package/docs/html/functions/DataCollectionEnabledFactory.html +1 -1
- package/docs/html/functions/EnablePersistenceTokenFactory.html +1 -1
- package/docs/html/functions/FirebaseNameOrConfigTokenFactory.html +1 -1
- package/docs/html/functions/FirebaseOptionsTokenFactory.html +1 -1
- package/docs/html/functions/FirestoreSettingsTokenFactory.html +1 -1
- package/docs/html/functions/FunctionsNewOriginBehaviorFactory.html +1 -1
- package/docs/html/functions/FunctionsOriginFactory.html +1 -1
- package/docs/html/functions/FunctionsRegionFactory.html +1 -1
- package/docs/html/functions/GetAnalyticsAppName.html +1 -1
- package/docs/html/functions/InstrumentationEnabledFactory.html +1 -1
- package/docs/html/functions/PersistenceSettingsTokenFactory.html +1 -1
- package/docs/html/functions/ServiceWorkerFactory.html +1 -1
- package/docs/html/functions/StorageBucketFactory.html +1 -1
- package/docs/html/functions/StorageMaxOperationRetryTimeFactory.html +1 -1
- package/docs/html/functions/StorageMaxUploadRetryTimeFactory.html +1 -1
- package/docs/html/functions/UseAuthEmulatorFactory.html +1 -1
- package/docs/html/functions/UseFirestoreEmulatorFactory.html +1 -1
- package/docs/html/functions/UseFunctionsEmulatorFactory.html +1 -1
- package/docs/html/functions/VapidKeyFactory.html +1 -1
- package/docs/html/functions/provideAngularFireAppCheck.html +2 -2
- package/docs/html/functions/provideAngularFireStorageEmulator.html +2 -2
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/FirebaseConfig.html +2 -2
- package/docs/html/interfaces/Message.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/APP_CHECK_ENABLED.html +1 -1
- package/docs/html/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.html +1 -1
- package/docs/html/variables/APP_CHECK_SITE_KEY.html +1 -1
- package/docs/html/variables/FIREBASE_ANALYTICS_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.html +1 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.html +1 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_APP_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_AUTH_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_FIRESTORE_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_FUNCTIONS_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_MESSAGING_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_PERFORMANCE_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_PROVIDERS.html +1 -1
- package/docs/html/variables/FIREBASE_STORAGE_PROVIDERS.html +1 -1
- package/docs/html/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.html +1 -1
- package/docs/html/variables/USE_STORAGE_EMULATOR.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AppCheckService.md +6 -6
- package/docs/markdown/classes/FirebaseAppCheckHttpInterceptor.md +5 -5
- package/docs/markdown/classes/RxapFirebaseMessagingService.md +8 -8
- package/docs/markdown/functions/AnalyticsEnabledFactory.md +2 -2
- package/docs/markdown/functions/AppCheckEnabledFactory.md +2 -2
- package/docs/markdown/functions/AppCheckSiteKeyFactory.md +2 -2
- package/docs/markdown/functions/AppIsTokenAutoRefreshEnabledFactory.md +2 -2
- package/docs/markdown/functions/AuthLanguageCodeFactory.md +2 -2
- package/docs/markdown/functions/AuthPersistenceFactory.md +2 -2
- package/docs/markdown/functions/AuthSettingsFactory.md +2 -2
- package/docs/markdown/functions/AuthTenantIdFactory.md +2 -2
- package/docs/markdown/functions/AuthUseDeviceLanguageFactory.md +2 -2
- package/docs/markdown/functions/DataCollectionEnabledFactory.md +2 -2
- package/docs/markdown/functions/EnablePersistenceTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebaseNameOrConfigTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebaseOptionsTokenFactory.md +2 -2
- package/docs/markdown/functions/FirestoreSettingsTokenFactory.md +2 -2
- package/docs/markdown/functions/FunctionsNewOriginBehaviorFactory.md +2 -2
- package/docs/markdown/functions/FunctionsOriginFactory.md +2 -2
- package/docs/markdown/functions/FunctionsRegionFactory.md +2 -2
- package/docs/markdown/functions/GetAnalyticsAppName.md +2 -2
- package/docs/markdown/functions/InstrumentationEnabledFactory.md +2 -2
- package/docs/markdown/functions/PersistenceSettingsTokenFactory.md +2 -2
- package/docs/markdown/functions/ServiceWorkerFactory.md +2 -2
- package/docs/markdown/functions/StorageBucketFactory.md +2 -2
- package/docs/markdown/functions/StorageMaxOperationRetryTimeFactory.md +2 -2
- package/docs/markdown/functions/StorageMaxUploadRetryTimeFactory.md +2 -2
- package/docs/markdown/functions/UseAuthEmulatorFactory.md +2 -2
- package/docs/markdown/functions/UseFirestoreEmulatorFactory.md +2 -2
- package/docs/markdown/functions/UseFunctionsEmulatorFactory.md +2 -2
- package/docs/markdown/functions/VapidKeyFactory.md +2 -2
- package/docs/markdown/functions/provideAngularFireAppCheck.md +2 -2
- package/docs/markdown/functions/provideAngularFireStorageEmulator.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/FirebaseConfig.md +3 -3
- package/docs/markdown/interfaces/Message.md +5 -5
- package/docs/markdown/variables/APP_CHECK_ENABLED.md +2 -2
- package/docs/markdown/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +2 -2
- package/docs/markdown/variables/APP_CHECK_SITE_KEY.md +2 -2
- package/docs/markdown/variables/FIREBASE_ANALYTICS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_CHECK_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_AUTH_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FIRESTORE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FUNCTIONS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_MESSAGING_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_PERFORMANCE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_STORAGE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +2 -2
- package/docs/markdown/variables/USE_STORAGE_EMULATOR.md +2 -2
- package/docs/wiki/Class.AppCheckService.md +5 -5
- package/docs/wiki/Class.FirebaseAppCheckHttpInterceptor.md +4 -4
- package/docs/wiki/Class.RxapFirebaseMessagingService.md +7 -7
- package/docs/wiki/Function.AnalyticsEnabledFactory.md +1 -1
- package/docs/wiki/Function.AppCheckEnabledFactory.md +1 -1
- package/docs/wiki/Function.AppCheckSiteKeyFactory.md +1 -1
- package/docs/wiki/Function.AppIsTokenAutoRefreshEnabledFactory.md +1 -1
- package/docs/wiki/Function.AuthLanguageCodeFactory.md +1 -1
- package/docs/wiki/Function.AuthPersistenceFactory.md +1 -1
- package/docs/wiki/Function.AuthSettingsFactory.md +1 -1
- package/docs/wiki/Function.AuthTenantIdFactory.md +1 -1
- package/docs/wiki/Function.AuthUseDeviceLanguageFactory.md +1 -1
- package/docs/wiki/Function.DataCollectionEnabledFactory.md +1 -1
- package/docs/wiki/Function.EnablePersistenceTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebaseNameOrConfigTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebaseOptionsTokenFactory.md +1 -1
- package/docs/wiki/Function.FirestoreSettingsTokenFactory.md +1 -1
- package/docs/wiki/Function.FunctionsNewOriginBehaviorFactory.md +1 -1
- package/docs/wiki/Function.FunctionsOriginFactory.md +1 -1
- package/docs/wiki/Function.FunctionsRegionFactory.md +1 -1
- package/docs/wiki/Function.GetAnalyticsAppName.md +1 -1
- package/docs/wiki/Function.InstrumentationEnabledFactory.md +1 -1
- package/docs/wiki/Function.PersistenceSettingsTokenFactory.md +1 -1
- package/docs/wiki/Function.ServiceWorkerFactory.md +1 -1
- package/docs/wiki/Function.StorageBucketFactory.md +1 -1
- package/docs/wiki/Function.StorageMaxOperationRetryTimeFactory.md +1 -1
- package/docs/wiki/Function.StorageMaxUploadRetryTimeFactory.md +1 -1
- package/docs/wiki/Function.UseAuthEmulatorFactory.md +1 -1
- package/docs/wiki/Function.UseFirestoreEmulatorFactory.md +1 -1
- package/docs/wiki/Function.UseFunctionsEmulatorFactory.md +1 -1
- package/docs/wiki/Function.VapidKeyFactory.md +1 -1
- package/docs/wiki/Function.provideAngularFireAppCheck.md +1 -1
- package/docs/wiki/Function.provideAngularFireStorageEmulator.md +1 -1
- package/docs/wiki/Interface.FirebaseConfig.md +2 -2
- package/docs/wiki/Interface.Message.md +4 -4
- package/docs/wiki/Variable.APP_CHECK_ENABLED.md +1 -1
- package/docs/wiki/Variable.APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +1 -1
- package/docs/wiki/Variable.APP_CHECK_SITE_KEY.md +1 -1
- package/docs/wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_AUTH_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_MESSAGING_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_PERFORMANCE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_STORAGE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +1 -1
- package/docs/wiki/Variable.USE_STORAGE_EMULATOR.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-firebase-auth.mjs +99 -98
- package/fesm2022/rxap-firebase-auth.mjs.map +1 -1
- package/fesm2022/rxap-firebase.mjs +365 -374
- package/fesm2022/rxap-firebase.mjs.map +1 -1
- package/package.json +11 -11
- package/types/rxap-firebase-auth.d.ts +28 -29
- 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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
7
|
+
Defined in: [storage.ts:10](https://gitlab.com/rxap/packages/-/blob/c8145693a1e685c856c9997ae6c17bbf32838e79/packages/angular/firebase/src/lib/storage.ts#L10)
|
package/docs/wiki/globals.md
CHANGED
|
@@ -1,101 +1,102 @@
|
|
|
1
|
-
import { HttpErrorResponse } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import { InjectionToken, inject
|
|
4
|
-
import { Auth,
|
|
5
|
-
import { isDefined } from
|
|
6
|
-
import { coerceArray } from
|
|
7
|
-
import {
|
|
8
|
-
import { BehaviorSubject, EMPTY, firstValueFrom } from
|
|
9
|
-
import { traceUntilFirst } from
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
101
|
+
|
|
102
|
+
//# sourceMappingURL=rxap-firebase-auth.mjs.map
|