UNPKG

@rxap/firebase

Version:

This package provides Angular modules and services to integrate with Firebase, including App Check, Messaging, and Storage. It offers providers for configuring Firebase options and emulators, as well as an HTTP interceptor for App Check. The package also

25 lines (24 loc) 1.42 kB
import { NgZone } from '@angular/core'; import { ConfigService } from '@rxap/config'; import { Observable } from 'rxjs'; import { FirebaseOptions } from 'firebase/app'; import { AppCheckTokenResult } from '@angular/fire/app-check'; import * as i0 from "@angular/core"; export declare class AppCheckService { private readonly config; private readonly enabled; readonly onTokenChanged$: Observable<AppCheckTokenResult>; private readonly _appCheck; constructor(options: FirebaseOptions, nameOrConfig: string, zone: NgZone, config: ConfigService, enabled: boolean | null, siteKey: string | null, isTokenAutoRefreshEnabled: boolean | null); getToken(forceRefresh?: boolean): Promise<string>; setTokenAutoRefreshEnabled(isTokenAutoRefreshEnabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration<AppCheckService, [null, { optional: true; }, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<AppCheckService>; } export declare class RxapAngularFireAppCheckModule { readonly appCheck: AppCheckService; constructor(appCheck: AppCheckService); static ɵfac: i0.ɵɵFactoryDeclaration<RxapAngularFireAppCheckModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<RxapAngularFireAppCheckModule, never, never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<RxapAngularFireAppCheckModule>; }