@rxap/firebase 21.0.1 → 22.0.0-dev.1
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 +31 -0
- package/README.md +1 -1
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +75 -5
- package/compodoc/dependencies.html +104 -27
- package/compodoc/index.html +47 -6
- package/compodoc/injectables/AppCheckService.html +121 -116
- package/compodoc/injectables/RxapFirebaseMessagingService.html +198 -59
- package/compodoc/interceptors/FirebaseAppCheckHttpInterceptor.html +89 -34
- package/compodoc/interfaces/FirebaseConfig.html +114 -64
- package/compodoc/interfaces/Message.html +256 -159
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +215 -0
- package/compodoc/miscellaneous/functions.html +860 -117
- package/compodoc/miscellaneous/variables.html +614 -127
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +3419 -1369
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/AppCheckService.html +106 -5
- package/docs/html/classes/FirebaseAppCheckHttpInterceptor.html +107 -8
- package/docs/html/classes/RxapFirebaseMessagingService.html +123 -7
- package/docs/html/functions/AnalyticsEnabledFactory.html +42 -1
- package/docs/html/functions/AppCheckEnabledFactory.html +42 -1
- package/docs/html/functions/AppCheckSiteKeyFactory.html +42 -1
- package/docs/html/functions/AppIsTokenAutoRefreshEnabledFactory.html +42 -1
- package/docs/html/functions/AuthLanguageCodeFactory.html +42 -1
- package/docs/html/functions/AuthPersistenceFactory.html +42 -1
- package/docs/html/functions/AuthSettingsFactory.html +42 -1
- package/docs/html/functions/AuthTenantIdFactory.html +42 -1
- package/docs/html/functions/AuthUseDeviceLanguageFactory.html +42 -1
- package/docs/html/functions/DataCollectionEnabledFactory.html +42 -1
- package/docs/html/functions/EnablePersistenceTokenFactory.html +42 -1
- package/docs/html/functions/FirebaseAnalyticsFactory.html +45 -0
- package/docs/html/functions/FirebaseAppCheckFactory.html +47 -0
- package/docs/html/functions/FirebaseAppFactory.html +45 -0
- package/docs/html/functions/FirebaseAuthFactory.html +43 -0
- package/docs/html/functions/FirebaseFirestoreFactory.html +43 -0
- package/docs/html/functions/FirebaseFunctionsFactory.html +43 -0
- package/docs/html/functions/FirebaseMessagingFactory.html +44 -0
- package/docs/html/functions/FirebaseNameOrConfigTokenFactory.html +42 -1
- package/docs/html/functions/FirebaseOptionsTokenFactory.html +42 -1
- package/docs/html/functions/FirebasePerformanceFactory.html +43 -0
- package/docs/html/functions/FirebaseStorageFactory.html +43 -0
- package/docs/html/functions/FirestoreSettingsTokenFactory.html +42 -1
- package/docs/html/functions/FunctionsNewOriginBehaviorFactory.html +42 -1
- package/docs/html/functions/FunctionsOriginFactory.html +42 -1
- package/docs/html/functions/FunctionsRegionFactory.html +42 -1
- package/docs/html/functions/GetAnalyticsAppName.html +42 -1
- package/docs/html/functions/InstrumentationEnabledFactory.html +42 -1
- package/docs/html/functions/PersistenceSettingsTokenFactory.html +42 -1
- package/docs/html/functions/ServiceWorkerFactory.html +38 -1
- package/docs/html/functions/StorageBucketFactory.html +42 -1
- package/docs/html/functions/StorageMaxOperationRetryTimeFactory.html +42 -1
- package/docs/html/functions/StorageMaxUploadRetryTimeFactory.html +42 -1
- package/docs/html/functions/UseAuthEmulatorFactory.html +42 -1
- package/docs/html/functions/UseFirestoreEmulatorFactory.html +42 -1
- package/docs/html/functions/UseFunctionsEmulatorFactory.html +42 -1
- package/docs/html/functions/VapidKeyFactory.html +42 -1
- package/docs/html/functions/provideFirebaseAppCheck.html +40 -0
- package/docs/html/functions/provideFirebaseStorageEmulator.html +40 -0
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +41 -5
- package/docs/html/interfaces/FirebaseConfig.html +123 -9
- package/docs/html/interfaces/Message.html +67 -4
- package/docs/html/modules.html +48 -1
- package/docs/html/variables/APP_CHECK_ENABLED.html +33 -1
- package/docs/html/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.html +33 -1
- package/docs/html/variables/APP_CHECK_SITE_KEY.html +33 -1
- package/docs/html/variables/FIREBASE_ANALYTICS.html +35 -0
- package/docs/html/variables/FIREBASE_ANALYTICS_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_APP.html +33 -0
- package/docs/html/variables/FIREBASE_APP_CHECK.html +35 -0
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.html +33 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.html +33 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_APP_NAME.html +35 -0
- package/docs/html/variables/FIREBASE_APP_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_AUTH.html +33 -0
- package/docs/html/variables/FIREBASE_AUTH_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_FIRESTORE.html +33 -0
- package/docs/html/variables/FIREBASE_FIRESTORE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_FUNCTIONS.html +33 -0
- package/docs/html/variables/FIREBASE_FUNCTIONS_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_MESSAGING.html +35 -0
- package/docs/html/variables/FIREBASE_MESSAGING_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_MESSAGING_VAPID_KEY.html +33 -0
- package/docs/html/variables/FIREBASE_OPTIONS.html +35 -0
- package/docs/html/variables/FIREBASE_PERFORMANCE.html +33 -0
- package/docs/html/variables/FIREBASE_PERFORMANCE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_STORAGE.html +33 -0
- package/docs/html/variables/FIREBASE_STORAGE_PROVIDERS.html +33 -1
- package/docs/html/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.html +33 -1
- package/docs/html/variables/USE_STORAGE_EMULATOR.html +33 -1
- package/docs/html/variables/provideAngularFireAppCheck.html +47 -0
- package/docs/html/variables/provideAngularFireStorageEmulator.html +47 -0
- package/docs/markdown/README.md +2 -2
- package/docs/markdown/classes/AppCheckService.md +10 -12
- package/docs/markdown/classes/FirebaseAppCheckHttpInterceptor.md +9 -9
- package/docs/markdown/classes/RxapFirebaseMessagingService.md +23 -15
- 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/FirebaseAnalyticsFactory.md +27 -0
- package/docs/markdown/functions/FirebaseAppCheckFactory.md +35 -0
- package/docs/markdown/functions/FirebaseAppFactory.md +27 -0
- package/docs/markdown/functions/FirebaseAuthFactory.md +25 -0
- package/docs/markdown/functions/FirebaseFirestoreFactory.md +25 -0
- package/docs/markdown/functions/FirebaseFunctionsFactory.md +25 -0
- package/docs/markdown/functions/FirebaseMessagingFactory.md +23 -0
- package/docs/markdown/functions/FirebaseNameOrConfigTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebaseOptionsTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebasePerformanceFactory.md +25 -0
- package/docs/markdown/functions/FirebaseStorageFactory.md +25 -0
- 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 +4 -4
- package/docs/markdown/functions/InstrumentationEnabledFactory.md +2 -2
- package/docs/markdown/functions/PersistenceSettingsTokenFactory.md +2 -2
- package/docs/markdown/functions/ServiceWorkerFactory.md +4 -4
- 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/provideFirebaseAppCheck.md +17 -0
- package/docs/markdown/functions/provideFirebaseStorageEmulator.md +17 -0
- package/docs/markdown/globals.md +27 -4
- package/docs/markdown/interfaces/FirebaseConfig.md +88 -84
- 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.md +13 -0
- package/docs/markdown/variables/FIREBASE_ANALYTICS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP.md +11 -0
- package/docs/markdown/variables/FIREBASE_APP_CHECK.md +13 -0
- 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_NAME.md +13 -0
- package/docs/markdown/variables/FIREBASE_APP_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_AUTH.md +11 -0
- package/docs/markdown/variables/FIREBASE_AUTH_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FIRESTORE.md +11 -0
- package/docs/markdown/variables/FIREBASE_FIRESTORE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FUNCTIONS.md +11 -0
- package/docs/markdown/variables/FIREBASE_FUNCTIONS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_MESSAGING.md +13 -0
- package/docs/markdown/variables/FIREBASE_MESSAGING_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_MESSAGING_VAPID_KEY.md +11 -0
- package/docs/markdown/variables/FIREBASE_OPTIONS.md +13 -0
- package/docs/markdown/variables/FIREBASE_PERFORMANCE.md +11 -0
- 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.md +11 -0
- 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/markdown/variables/provideAngularFireAppCheck.md +21 -0
- package/docs/markdown/variables/provideAngularFireStorageEmulator.md +21 -0
- package/docs/wiki/Class.AppCheckService.md +9 -11
- package/docs/wiki/Class.FirebaseAppCheckHttpInterceptor.md +8 -8
- package/docs/wiki/Class.RxapFirebaseMessagingService.md +22 -14
- 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.FirebaseAnalyticsFactory.md +23 -0
- package/docs/wiki/Function.FirebaseAppCheckFactory.md +31 -0
- package/docs/wiki/Function.FirebaseAppFactory.md +23 -0
- package/docs/wiki/Function.FirebaseAuthFactory.md +21 -0
- package/docs/wiki/Function.FirebaseFirestoreFactory.md +21 -0
- package/docs/wiki/Function.FirebaseFunctionsFactory.md +21 -0
- package/docs/wiki/Function.FirebaseMessagingFactory.md +19 -0
- package/docs/wiki/Function.FirebaseNameOrConfigTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebaseOptionsTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebasePerformanceFactory.md +21 -0
- package/docs/wiki/Function.FirebaseStorageFactory.md +21 -0
- 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 +3 -3
- package/docs/wiki/Function.InstrumentationEnabledFactory.md +1 -1
- package/docs/wiki/Function.PersistenceSettingsTokenFactory.md +1 -1
- package/docs/wiki/Function.ServiceWorkerFactory.md +3 -3
- 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.provideFirebaseAppCheck.md +13 -0
- package/docs/wiki/Function.provideFirebaseStorageEmulator.md +13 -0
- package/docs/wiki/Home.md +1 -1
- package/docs/wiki/Interface.FirebaseConfig.md +87 -83
- 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.md +9 -0
- package/docs/wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP.md +7 -0
- package/docs/wiki/Variable.FIREBASE_APP_CHECK.md +9 -0
- 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_NAME.md +9 -0
- package/docs/wiki/Variable.FIREBASE_APP_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_AUTH.md +7 -0
- package/docs/wiki/Variable.FIREBASE_AUTH_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FIRESTORE.md +7 -0
- package/docs/wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FUNCTIONS.md +7 -0
- package/docs/wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_MESSAGING.md +9 -0
- package/docs/wiki/Variable.FIREBASE_MESSAGING_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_MESSAGING_VAPID_KEY.md +7 -0
- package/docs/wiki/Variable.FIREBASE_OPTIONS.md +9 -0
- package/docs/wiki/Variable.FIREBASE_PERFORMANCE.md +7 -0
- 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.md +7 -0
- 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/Variable.provideAngularFireAppCheck.md +17 -0
- package/docs/wiki/Variable.provideAngularFireStorageEmulator.md +17 -0
- package/docs/wiki/_Sidebar.md +25 -2
- package/docs/wiki/globals.md +26 -3
- package/fesm2022/rxap-firebase-auth.mjs +110 -97
- package/fesm2022/rxap-firebase-auth.mjs.map +1 -1
- package/fesm2022/rxap-firebase.mjs +399 -385
- package/fesm2022/rxap-firebase.mjs.map +1 -1
- package/package.json +16 -29
- package/types/rxap-firebase-auth.d.ts +36 -29
- package/types/rxap-firebase.d.ts +237 -185
- package/docs/html/functions/provideAngularFireAppCheck.html +0 -3
- package/docs/html/functions/provideAngularFireStorageEmulator.html +0 -3
- package/docs/markdown/functions/provideAngularFireAppCheck.md +0 -18
- package/docs/markdown/functions/provideAngularFireStorageEmulator.md +0 -18
- package/docs/wiki/Function.provideAngularFireAppCheck.md +0 -14
- package/docs/wiki/Function.provideAngularFireStorageEmulator.md +0 -14
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_ANALYTICS
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_ANALYTICS
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_ANALYTICS**: `InjectionToken`\<`Analytics` \| `null`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:45](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L45)
|
|
8
|
+
|
|
9
|
+
null if firebase analytics is not available in the current environment
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_ANALYTICS\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:402](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L402)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_APP
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_APP
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_APP**: `InjectionToken`\<`FirebaseApp`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:31](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L31)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_APP\_CHECK
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_APP\_CHECK
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_APP\_CHECK**: `InjectionToken`\<`AppCheck` \| `null`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:49](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L49)
|
|
8
|
+
|
|
9
|
+
null if app check is disabled or not configured
|
|
@@ -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:
|
|
7
|
+
Defined in: [firebase-app-check.http-interceptor.ts:53](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase-app-check.http-interceptor.ts#L53)
|
|
@@ -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:
|
|
7
|
+
Defined in: [tokens.ts:20](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L20)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_APP\_CHECK\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:416](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L416)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_APP\_NAME
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_APP\_NAME
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_APP\_NAME**: `InjectionToken`\<`string` \| `null`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:30](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L30)
|
|
8
|
+
|
|
9
|
+
The name of the firebase app. If not provided (or null) the default app is used.
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_APP\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:352](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L352)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_AUTH
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_AUTH
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_AUTH**: `InjectionToken`\<`Auth`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:32](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L32)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_AUTH\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:409](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L409)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_FIRESTORE
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_FIRESTORE
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_FIRESTORE**: `InjectionToken`\<`Firestore`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:33](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L33)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_FIRESTORE\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:369](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L369)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_FUNCTIONS
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_FUNCTIONS
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_FUNCTIONS**: `InjectionToken`\<`Functions`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:34](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L34)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_FUNCTIONS\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:376](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L376)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_MESSAGING
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_MESSAGING
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_MESSAGING**: `InjectionToken`\<`Messaging` \| `null`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:40](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L40)
|
|
8
|
+
|
|
9
|
+
null if firebase messaging is not supported in the current environment
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_MESSAGING\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:383](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L383)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_MESSAGING\_VAPID\_KEY
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_MESSAGING\_VAPID\_KEY
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_MESSAGING\_VAPID\_KEY**: `InjectionToken`\<`string` \| `null`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:41](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L41)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_OPTIONS
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_OPTIONS
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_OPTIONS**: `InjectionToken`\<`FirebaseOptions`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:26](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L26)
|
|
8
|
+
|
|
9
|
+
The options the firebase app is initialized with.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_PERFORMANCE
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_PERFORMANCE
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_PERFORMANCE**: `InjectionToken`\<`FirebasePerformance`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:36](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L36)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_PERFORMANCE\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:395](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L395)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:451](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L451)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / FIREBASE\_STORAGE
|
|
2
|
+
|
|
3
|
+
# Variable: FIREBASE\_STORAGE
|
|
4
|
+
|
|
5
|
+
> `const` **FIREBASE\_STORAGE**: `InjectionToken`\<`FirebaseStorage`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [tokens.ts:35](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L35)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **FIREBASE\_STORAGE\_PROVIDERS**: `Provider`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [firebase.provider.ts:
|
|
7
|
+
Defined in: [firebase.provider.ts:444](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/firebase.provider.ts#L444)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_REQUEST\_CLOUD\_MESSAGING\_TOKEN**: `InjectionToken`\<`unknown`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:
|
|
7
|
+
Defined in: [tokens.ts:15](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/tokens.ts#L15)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **USE\_STORAGE\_EMULATOR**: `InjectionToken`\<\[`string`, `number`\]\>
|
|
6
6
|
|
|
7
|
-
Defined in: [storage.ts:
|
|
7
|
+
Defined in: [storage.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/storage.ts#L11)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / provideAngularFireAppCheck
|
|
2
|
+
|
|
3
|
+
# ~~Variable: provideAngularFireAppCheck~~
|
|
4
|
+
|
|
5
|
+
> `const` **provideAngularFireAppCheck**: () => `EnvironmentProviders` = `provideFirebaseAppCheck`
|
|
6
|
+
|
|
7
|
+
Defined in: [app-check.ts:64](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/app-check.ts#L64)
|
|
8
|
+
|
|
9
|
+
Registers the AppCheckService and eagerly instantiates it on app initialization.
|
|
10
|
+
|
|
11
|
+
## Returns
|
|
12
|
+
|
|
13
|
+
`EnvironmentProviders`
|
|
14
|
+
|
|
15
|
+
## Deprecated
|
|
16
|
+
|
|
17
|
+
use provideFirebaseAppCheck
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/firebase](../wiki/globals) / provideAngularFireStorageEmulator
|
|
2
|
+
|
|
3
|
+
# ~~Variable: provideAngularFireStorageEmulator~~
|
|
4
|
+
|
|
5
|
+
> `const` **provideAngularFireStorageEmulator**: () => `EnvironmentProviders` = `provideFirebaseStorageEmulator`
|
|
6
|
+
|
|
7
|
+
Defined in: [storage.ts:31](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/firebase/src/lib/storage.ts#L31)
|
|
8
|
+
|
|
9
|
+
Connects the firebase storage to the emulator if USE_STORAGE_EMULATOR is provided.
|
|
10
|
+
|
|
11
|
+
## Returns
|
|
12
|
+
|
|
13
|
+
`EnvironmentProviders`
|
|
14
|
+
|
|
15
|
+
## Deprecated
|
|
16
|
+
|
|
17
|
+
use provideFirebaseStorageEmulator
|
package/docs/wiki/_Sidebar.md
CHANGED
|
@@ -16,18 +16,32 @@
|
|
|
16
16
|
- [APP_CHECK_ENABLED](../wiki/Variable.APP_CHECK_ENABLED)
|
|
17
17
|
- [APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED](../wiki/Variable.APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED)
|
|
18
18
|
- [APP_CHECK_SITE_KEY](../wiki/Variable.APP_CHECK_SITE_KEY)
|
|
19
|
+
- [FIREBASE_ANALYTICS](../wiki/Variable.FIREBASE_ANALYTICS)
|
|
19
20
|
- [FIREBASE_ANALYTICS_PROVIDERS](../wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS)
|
|
21
|
+
- [FIREBASE_APP](../wiki/Variable.FIREBASE_APP)
|
|
22
|
+
- [FIREBASE_APP_CHECK](../wiki/Variable.FIREBASE_APP_CHECK)
|
|
20
23
|
- [FIREBASE_APP_CHECK_HTTP_INTERCEPTOR](../wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR)
|
|
21
24
|
- [FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN](../wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN)
|
|
22
25
|
- [FIREBASE_APP_CHECK_PROVIDERS](../wiki/Variable.FIREBASE_APP_CHECK_PROVIDERS)
|
|
26
|
+
- [FIREBASE_APP_NAME](../wiki/Variable.FIREBASE_APP_NAME)
|
|
23
27
|
- [FIREBASE_APP_PROVIDERS](../wiki/Variable.FIREBASE_APP_PROVIDERS)
|
|
28
|
+
- [FIREBASE_AUTH](../wiki/Variable.FIREBASE_AUTH)
|
|
24
29
|
- [FIREBASE_AUTH_PROVIDERS](../wiki/Variable.FIREBASE_AUTH_PROVIDERS)
|
|
30
|
+
- [FIREBASE_FIRESTORE](../wiki/Variable.FIREBASE_FIRESTORE)
|
|
25
31
|
- [FIREBASE_FIRESTORE_PROVIDERS](../wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS)
|
|
32
|
+
- [FIREBASE_FUNCTIONS](../wiki/Variable.FIREBASE_FUNCTIONS)
|
|
26
33
|
- [FIREBASE_FUNCTIONS_PROVIDERS](../wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS)
|
|
34
|
+
- [FIREBASE_MESSAGING](../wiki/Variable.FIREBASE_MESSAGING)
|
|
27
35
|
- [FIREBASE_MESSAGING_PROVIDERS](../wiki/Variable.FIREBASE_MESSAGING_PROVIDERS)
|
|
36
|
+
- [FIREBASE_MESSAGING_VAPID_KEY](../wiki/Variable.FIREBASE_MESSAGING_VAPID_KEY)
|
|
37
|
+
- [FIREBASE_OPTIONS](../wiki/Variable.FIREBASE_OPTIONS)
|
|
38
|
+
- [FIREBASE_PERFORMANCE](../wiki/Variable.FIREBASE_PERFORMANCE)
|
|
28
39
|
- [FIREBASE_PERFORMANCE_PROVIDERS](../wiki/Variable.FIREBASE_PERFORMANCE_PROVIDERS)
|
|
29
40
|
- [FIREBASE_PROVIDERS](../wiki/Variable.FIREBASE_PROVIDERS)
|
|
41
|
+
- [FIREBASE_STORAGE](../wiki/Variable.FIREBASE_STORAGE)
|
|
30
42
|
- [FIREBASE_STORAGE_PROVIDERS](../wiki/Variable.FIREBASE_STORAGE_PROVIDERS)
|
|
43
|
+
- [provideAngularFireAppCheck](../wiki/Variable.provideAngularFireAppCheck)
|
|
44
|
+
- [provideAngularFireStorageEmulator](../wiki/Variable.provideAngularFireStorageEmulator)
|
|
31
45
|
- [RXAP_REQUEST_CLOUD_MESSAGING_TOKEN](../wiki/Variable.RXAP_REQUEST_CLOUD_MESSAGING_TOKEN)
|
|
32
46
|
- [USE_STORAGE_EMULATOR](../wiki/Variable.USE_STORAGE_EMULATOR)
|
|
33
47
|
|
|
@@ -44,8 +58,17 @@
|
|
|
44
58
|
- [AuthUseDeviceLanguageFactory](../wiki/Function.AuthUseDeviceLanguageFactory)
|
|
45
59
|
- [DataCollectionEnabledFactory](../wiki/Function.DataCollectionEnabledFactory)
|
|
46
60
|
- [EnablePersistenceTokenFactory](../wiki/Function.EnablePersistenceTokenFactory)
|
|
61
|
+
- [FirebaseAnalyticsFactory](../wiki/Function.FirebaseAnalyticsFactory)
|
|
62
|
+
- [FirebaseAppCheckFactory](../wiki/Function.FirebaseAppCheckFactory)
|
|
63
|
+
- [FirebaseAppFactory](../wiki/Function.FirebaseAppFactory)
|
|
64
|
+
- [FirebaseAuthFactory](../wiki/Function.FirebaseAuthFactory)
|
|
65
|
+
- [FirebaseFirestoreFactory](../wiki/Function.FirebaseFirestoreFactory)
|
|
66
|
+
- [FirebaseFunctionsFactory](../wiki/Function.FirebaseFunctionsFactory)
|
|
67
|
+
- [FirebaseMessagingFactory](../wiki/Function.FirebaseMessagingFactory)
|
|
47
68
|
- [FirebaseNameOrConfigTokenFactory](../wiki/Function.FirebaseNameOrConfigTokenFactory)
|
|
48
69
|
- [FirebaseOptionsTokenFactory](../wiki/Function.FirebaseOptionsTokenFactory)
|
|
70
|
+
- [FirebasePerformanceFactory](../wiki/Function.FirebasePerformanceFactory)
|
|
71
|
+
- [FirebaseStorageFactory](../wiki/Function.FirebaseStorageFactory)
|
|
49
72
|
- [FirestoreSettingsTokenFactory](../wiki/Function.FirestoreSettingsTokenFactory)
|
|
50
73
|
- [FunctionsNewOriginBehaviorFactory](../wiki/Function.FunctionsNewOriginBehaviorFactory)
|
|
51
74
|
- [FunctionsOriginFactory](../wiki/Function.FunctionsOriginFactory)
|
|
@@ -53,8 +76,8 @@
|
|
|
53
76
|
- [GetAnalyticsAppName](../wiki/Function.GetAnalyticsAppName)
|
|
54
77
|
- [InstrumentationEnabledFactory](../wiki/Function.InstrumentationEnabledFactory)
|
|
55
78
|
- [PersistenceSettingsTokenFactory](../wiki/Function.PersistenceSettingsTokenFactory)
|
|
56
|
-
- [
|
|
57
|
-
- [
|
|
79
|
+
- [provideFirebaseAppCheck](../wiki/Function.provideFirebaseAppCheck)
|
|
80
|
+
- [provideFirebaseStorageEmulator](../wiki/Function.provideFirebaseStorageEmulator)
|
|
58
81
|
- [ServiceWorkerFactory](../wiki/Function.ServiceWorkerFactory)
|
|
59
82
|
- [StorageBucketFactory](../wiki/Function.StorageBucketFactory)
|
|
60
83
|
- [StorageMaxOperationRetryTimeFactory](../wiki/Function.StorageMaxOperationRetryTimeFactory)
|
package/docs/wiki/globals.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @rxap/firebase
|
|
1
|
+
# @rxap/firebase v22.0.0-dev.1
|
|
2
2
|
|
|
3
3
|
## Classes
|
|
4
4
|
|
|
@@ -16,18 +16,32 @@
|
|
|
16
16
|
- [APP\_CHECK\_ENABLED](../wiki/Variable.APP_CHECK_ENABLED)
|
|
17
17
|
- [APP\_CHECK\_IS\_TOKEN\_AUTO\_REFRESH\_ENABLED](../wiki/Variable.APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED)
|
|
18
18
|
- [APP\_CHECK\_SITE\_KEY](../wiki/Variable.APP_CHECK_SITE_KEY)
|
|
19
|
+
- [FIREBASE\_ANALYTICS](../wiki/Variable.FIREBASE_ANALYTICS)
|
|
19
20
|
- [FIREBASE\_ANALYTICS\_PROVIDERS](../wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS)
|
|
21
|
+
- [FIREBASE\_APP](../wiki/Variable.FIREBASE_APP)
|
|
22
|
+
- [FIREBASE\_APP\_CHECK](../wiki/Variable.FIREBASE_APP_CHECK)
|
|
20
23
|
- [FIREBASE\_APP\_CHECK\_HTTP\_INTERCEPTOR](../wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR)
|
|
21
24
|
- [FIREBASE\_APP\_CHECK\_HTTP\_INTERCEPTOR\_URL\_PATTERN](../wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN)
|
|
22
25
|
- [FIREBASE\_APP\_CHECK\_PROVIDERS](../wiki/Variable.FIREBASE_APP_CHECK_PROVIDERS)
|
|
26
|
+
- [FIREBASE\_APP\_NAME](../wiki/Variable.FIREBASE_APP_NAME)
|
|
23
27
|
- [FIREBASE\_APP\_PROVIDERS](../wiki/Variable.FIREBASE_APP_PROVIDERS)
|
|
28
|
+
- [FIREBASE\_AUTH](../wiki/Variable.FIREBASE_AUTH)
|
|
24
29
|
- [FIREBASE\_AUTH\_PROVIDERS](../wiki/Variable.FIREBASE_AUTH_PROVIDERS)
|
|
30
|
+
- [FIREBASE\_FIRESTORE](../wiki/Variable.FIREBASE_FIRESTORE)
|
|
25
31
|
- [FIREBASE\_FIRESTORE\_PROVIDERS](../wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS)
|
|
32
|
+
- [FIREBASE\_FUNCTIONS](../wiki/Variable.FIREBASE_FUNCTIONS)
|
|
26
33
|
- [FIREBASE\_FUNCTIONS\_PROVIDERS](../wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS)
|
|
34
|
+
- [FIREBASE\_MESSAGING](../wiki/Variable.FIREBASE_MESSAGING)
|
|
27
35
|
- [FIREBASE\_MESSAGING\_PROVIDERS](../wiki/Variable.FIREBASE_MESSAGING_PROVIDERS)
|
|
36
|
+
- [FIREBASE\_MESSAGING\_VAPID\_KEY](../wiki/Variable.FIREBASE_MESSAGING_VAPID_KEY)
|
|
37
|
+
- [FIREBASE\_OPTIONS](../wiki/Variable.FIREBASE_OPTIONS)
|
|
38
|
+
- [FIREBASE\_PERFORMANCE](../wiki/Variable.FIREBASE_PERFORMANCE)
|
|
28
39
|
- [FIREBASE\_PERFORMANCE\_PROVIDERS](../wiki/Variable.FIREBASE_PERFORMANCE_PROVIDERS)
|
|
29
40
|
- [FIREBASE\_PROVIDERS](../wiki/Variable.FIREBASE_PROVIDERS)
|
|
41
|
+
- [FIREBASE\_STORAGE](../wiki/Variable.FIREBASE_STORAGE)
|
|
30
42
|
- [FIREBASE\_STORAGE\_PROVIDERS](../wiki/Variable.FIREBASE_STORAGE_PROVIDERS)
|
|
43
|
+
- [~~provideAngularFireAppCheck~~](../wiki/Variable.provideAngularFireAppCheck)
|
|
44
|
+
- [~~provideAngularFireStorageEmulator~~](../wiki/Variable.provideAngularFireStorageEmulator)
|
|
31
45
|
- [RXAP\_REQUEST\_CLOUD\_MESSAGING\_TOKEN](../wiki/Variable.RXAP_REQUEST_CLOUD_MESSAGING_TOKEN)
|
|
32
46
|
- [USE\_STORAGE\_EMULATOR](../wiki/Variable.USE_STORAGE_EMULATOR)
|
|
33
47
|
|
|
@@ -44,8 +58,17 @@
|
|
|
44
58
|
- [AuthUseDeviceLanguageFactory](../wiki/Function.AuthUseDeviceLanguageFactory)
|
|
45
59
|
- [DataCollectionEnabledFactory](../wiki/Function.DataCollectionEnabledFactory)
|
|
46
60
|
- [EnablePersistenceTokenFactory](../wiki/Function.EnablePersistenceTokenFactory)
|
|
61
|
+
- [FirebaseAnalyticsFactory](../wiki/Function.FirebaseAnalyticsFactory)
|
|
62
|
+
- [FirebaseAppCheckFactory](../wiki/Function.FirebaseAppCheckFactory)
|
|
63
|
+
- [FirebaseAppFactory](../wiki/Function.FirebaseAppFactory)
|
|
64
|
+
- [FirebaseAuthFactory](../wiki/Function.FirebaseAuthFactory)
|
|
65
|
+
- [FirebaseFirestoreFactory](../wiki/Function.FirebaseFirestoreFactory)
|
|
66
|
+
- [FirebaseFunctionsFactory](../wiki/Function.FirebaseFunctionsFactory)
|
|
67
|
+
- [FirebaseMessagingFactory](../wiki/Function.FirebaseMessagingFactory)
|
|
47
68
|
- [FirebaseNameOrConfigTokenFactory](../wiki/Function.FirebaseNameOrConfigTokenFactory)
|
|
48
69
|
- [FirebaseOptionsTokenFactory](../wiki/Function.FirebaseOptionsTokenFactory)
|
|
70
|
+
- [FirebasePerformanceFactory](../wiki/Function.FirebasePerformanceFactory)
|
|
71
|
+
- [FirebaseStorageFactory](../wiki/Function.FirebaseStorageFactory)
|
|
49
72
|
- [FirestoreSettingsTokenFactory](../wiki/Function.FirestoreSettingsTokenFactory)
|
|
50
73
|
- [FunctionsNewOriginBehaviorFactory](../wiki/Function.FunctionsNewOriginBehaviorFactory)
|
|
51
74
|
- [FunctionsOriginFactory](../wiki/Function.FunctionsOriginFactory)
|
|
@@ -53,8 +76,8 @@
|
|
|
53
76
|
- [GetAnalyticsAppName](../wiki/Function.GetAnalyticsAppName)
|
|
54
77
|
- [InstrumentationEnabledFactory](../wiki/Function.InstrumentationEnabledFactory)
|
|
55
78
|
- [PersistenceSettingsTokenFactory](../wiki/Function.PersistenceSettingsTokenFactory)
|
|
56
|
-
- [
|
|
57
|
-
- [
|
|
79
|
+
- [provideFirebaseAppCheck](../wiki/Function.provideFirebaseAppCheck)
|
|
80
|
+
- [provideFirebaseStorageEmulator](../wiki/Function.provideFirebaseStorageEmulator)
|
|
58
81
|
- [ServiceWorkerFactory](../wiki/Function.ServiceWorkerFactory)
|
|
59
82
|
- [StorageBucketFactory](../wiki/Function.StorageBucketFactory)
|
|
60
83
|
- [StorageMaxOperationRetryTimeFactory](../wiki/Function.StorageMaxOperationRetryTimeFactory)
|
|
@@ -1,101 +1,114 @@
|
|
|
1
|
-
import { HttpErrorResponse } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import { InjectionToken, inject
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { BehaviorSubject, EMPTY, firstValueFrom } from
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { HttpErrorResponse } from "@angular/common/http";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Injectable, InjectionToken, inject } from "@angular/core";
|
|
4
|
+
import { FIREBASE_AUTH } from "@rxap/firebase";
|
|
5
|
+
import { FacebookAuthProvider, GithubAuthProvider, GoogleAuthProvider, TwitterAuthProvider, confirmPasswordReset, onAuthStateChanged, onIdTokenChanged, sendPasswordResetEmail, signInWithEmailAndPassword, signInWithPopup, signInWithRedirect, signOut } from "firebase/auth";
|
|
6
|
+
import { isDefined } from "@rxap/rxjs";
|
|
7
|
+
import { coerceArray } from "@rxap/utilities";
|
|
8
|
+
import { BehaviorSubject, EMPTY, Observable, firstValueFrom } from "rxjs";
|
|
9
|
+
import { catchError, map, switchMap, take, tap } from "rxjs/operators";
|
|
10
|
+
const IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN = new InjectionToken("identity-platform-http-interceptor-url-pattern");
|
|
11
|
+
function idToken(auth) {
|
|
12
|
+
return new Observable((subscriber) => onIdTokenChanged(auth, (user) => {
|
|
13
|
+
if (!user) {
|
|
14
|
+
subscriber.next(null);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
user.getIdToken().then((token) => subscriber.next(token), (error) => subscriber.error(error));
|
|
18
|
+
}, (error) => subscriber.error(error), () => subscriber.complete()));
|
|
19
|
+
}
|
|
12
20
|
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);
|
|
21
|
+
const urlPattern = coerceArray(inject(IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN, { optional: true }) ?? []);
|
|
22
|
+
const auth = inject(FIREBASE_AUTH);
|
|
23
|
+
const isMatch = (req) => {
|
|
24
|
+
return urlPattern.some((pattern) => req.url.match(pattern));
|
|
25
|
+
};
|
|
26
|
+
if (isMatch(req)) return idToken(auth).pipe(tap((idTokenValue) => {
|
|
27
|
+
if (!idTokenValue) throw new Error(`The isToken is not defined. Ensure that the user is logged in, before sending a request to '${req.url}'`);
|
|
28
|
+
}), isDefined(), switchMap((idTokenValue) => next(req.clone({ setHeaders: { idToken: idTokenValue } })).pipe(catchError((error) => {
|
|
29
|
+
if (error instanceof HttpErrorResponse) {
|
|
30
|
+
if (error.status === 401) auth.signOut().then(() => location.reload());
|
|
31
|
+
}
|
|
32
|
+
throw error;
|
|
33
|
+
}))));
|
|
34
|
+
return next(req);
|
|
37
35
|
};
|
|
38
|
-
|
|
39
|
-
|
|
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 }); }
|
|
36
|
+
function authState(auth) {
|
|
37
|
+
return new Observable((subscriber) => onAuthStateChanged(auth, (user) => subscriber.next(user), (error) => subscriber.error(error), () => subscriber.complete()));
|
|
88
38
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
39
|
+
var IdentityPlatformService = class IdentityPlatformService {
|
|
40
|
+
constructor() {
|
|
41
|
+
this.auth = inject(FIREBASE_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(take(1), map(Boolean)));
|
|
79
|
+
}
|
|
80
|
+
async withProvider(provider, popup = true) {
|
|
81
|
+
await (popup ? signInWithPopup(this.auth, provider) : signInWithRedirect(this.auth, provider));
|
|
82
|
+
this.isAuthenticated$.next(true);
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
static {
|
|
86
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
87
|
+
minVersion: "12.0.0",
|
|
88
|
+
version: "22.3.0",
|
|
89
|
+
ngImport: i0,
|
|
90
|
+
type: IdentityPlatformService,
|
|
91
|
+
deps: [],
|
|
92
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
static {
|
|
96
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
97
|
+
minVersion: "12.0.0",
|
|
98
|
+
version: "22.3.0",
|
|
99
|
+
ngImport: i0,
|
|
100
|
+
type: IdentityPlatformService
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
105
|
+
minVersion: "12.0.0",
|
|
106
|
+
version: "22.3.0",
|
|
107
|
+
ngImport: i0,
|
|
108
|
+
type: IdentityPlatformService,
|
|
109
|
+
decorators: [{ type: Injectable }],
|
|
110
|
+
ctorParameters: () => []
|
|
111
|
+
});
|
|
112
|
+
export { IDENTITY_PLATFORM_HTTP_INTERCEPTOR_URL_PATTERN, IdentityPlatformHttpInterceptor, IdentityPlatformService, authState, idToken };
|
|
99
113
|
|
|
100
|
-
|
|
101
|
-
//# sourceMappingURL=rxap-firebase-auth.mjs.map
|
|
114
|
+
//# sourceMappingURL=rxap-firebase-auth.mjs.map
|