in src/app-check/app-check.module.ts [20:30]
export function appCheckInstanceFactory(fn: (injector: Injector) => FirebaseAppCheck) {
// tslint:disable-next-line:ban-types
return (zone: NgZone, injector: Injector, platformId: Object) => {
// Node should use admin token provider, browser devmode and localhost should use debug token
if (!isPlatformServer(platformId) && (isDevMode() || isLocalhost)) {
globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN ??= true;
}
const appCheck = zone.runOutsideAngular(() => fn(injector));
return new AppCheck(appCheck);
};
}