@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
17 lines (16 loc) • 901 B
TypeScript
import { Provider } from '@angular/core';
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AppCheck } from '@angular/fire/app-check';
import * as i0 from "@angular/core";
export declare class FirebaseAppCheckHttpInterceptor implements HttpInterceptor {
readonly appCheck: AppCheck;
private readonly enabled;
private readonly urlPattern;
constructor(appCheck: AppCheck, urlPattern: RegExp | RegExp[], enabled: boolean | null);
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
private isMatch;
static ɵfac: i0.ɵɵFactoryDeclaration<FirebaseAppCheckHttpInterceptor, [null, null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<FirebaseAppCheckHttpInterceptor>;
}
export declare const FIREBASE_APP_CHECK_HTTP_INTERCEPTOR: Provider;