FirebaseAppCheck
Firebase App Check, mirroring com.google.firebase.appcheck.FirebaseAppCheck from the Firebase Android SDK. It attests that requests to Firebase backends come from your app, and gives you tokens for your own backend.
Tokens come from the AppCheckProvider of the installed AppCheckProviderFactory. That factory can be com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory, com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory (Android only), com.google.firebase.appcheck.recaptcha.RecaptchaAppCheckProviderFactory, or a factory of your own.
The platform SDKs install a factory differently:
Android: installAppCheckProviderFactory replaces the provider of this app at any time.
Apple: the iOS SDK keeps one factory for the whole process. It reads that factory when an app is configured, and creates the app's App Check then. installAppCheckProviderFactory sets the factory, so it only applies to apps configured afterwards. For the default app, set it before
Firebase.initializefrom Apple code withFirebaseAppCheck.setAppCheckProviderFactory. Until then the iOS SDK's default applies: the debug provider on a simulator, DeviceCheck on a device.JS: the JS SDK starts App Check for an app once, with its provider (
initializeAppCheck). The first installAppCheckProviderFactory does that, and the instance has no token before. Afterwards a factory of your own can still replace another one of your own. The JS SDK's own providers (the debug provider and reCAPTCHA) can neither replace a provider nor be replaced: installAppCheckProviderFactory throws then.
Firebase App Check, mirroring com.google.firebase.appcheck.FirebaseAppCheck from the Firebase Android SDK. It attests that requests to Firebase backends come from your app, and gives you tokens for your own backend.
Tokens come from the AppCheckProvider of the installed AppCheckProviderFactory. That factory can be com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory, com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory (Android only), com.google.firebase.appcheck.recaptcha.RecaptchaAppCheckProviderFactory, or a factory of your own.
The platform SDKs install a factory differently:
Android: installAppCheckProviderFactory replaces the provider of this app at any time.
Apple: the iOS SDK keeps one factory for the whole process. It reads that factory when an app is configured, and creates the app's App Check then. installAppCheckProviderFactory sets the factory, so it only applies to apps configured afterwards. For the default app, set it before
Firebase.initializefrom Apple code withFirebaseAppCheck.setAppCheckProviderFactory. Until then the iOS SDK's default applies: the debug provider on a simulator, DeviceCheck on a device.JS: the JS SDK starts App Check for an app once, with its provider (
initializeAppCheck). The first installAppCheckProviderFactory does that, and the instance has no token before. Afterwards a factory of your own can still replace another one of your own. The JS SDK's own providers (the debug provider and reCAPTCHA) can neither replace a provider nor be replaced: installAppCheckProviderFactory throws then.
Firebase App Check, mirroring com.google.firebase.appcheck.FirebaseAppCheck from the Firebase Android SDK. It attests that requests to Firebase backends come from your app, and gives you tokens for your own backend.
Tokens come from the AppCheckProvider of the installed AppCheckProviderFactory. That factory can be com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory, com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory (Android only), com.google.firebase.appcheck.recaptcha.RecaptchaAppCheckProviderFactory, or a factory of your own.
The platform SDKs install a factory differently:
Android: installAppCheckProviderFactory replaces the provider of this app at any time.
Apple: the iOS SDK keeps one factory for the whole process. It reads that factory when an app is configured, and creates the app's App Check then. installAppCheckProviderFactory sets the factory, so it only applies to apps configured afterwards. For the default app, set it before
Firebase.initializefrom Apple code withFirebaseAppCheck.setAppCheckProviderFactory. Until then the iOS SDK's default applies: the debug provider on a simulator, DeviceCheck on a device.JS: the JS SDK starts App Check for an app once, with its provider (
initializeAppCheck). The first installAppCheckProviderFactory does that, and the instance has no token before. Afterwards a factory of your own can still replace another one of your own. The JS SDK's own providers (the debug provider and reCAPTCHA) can neither replace a provider nor be replaced: installAppCheckProviderFactory throws then.
Firebase App Check, mirroring com.google.firebase.appcheck.FirebaseAppCheck from the Firebase Android SDK. It attests that requests to Firebase backends come from your app, and gives you tokens for your own backend.
Tokens come from the AppCheckProvider of the installed AppCheckProviderFactory. That factory can be com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory, com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory (Android only), com.google.firebase.appcheck.recaptcha.RecaptchaAppCheckProviderFactory, or a factory of your own.
The platform SDKs install a factory differently:
Android: installAppCheckProviderFactory replaces the provider of this app at any time.
Apple: the iOS SDK keeps one factory for the whole process. It reads that factory when an app is configured, and creates the app's App Check then. installAppCheckProviderFactory sets the factory, so it only applies to apps configured afterwards. For the default app, set it before
Firebase.initializefrom Apple code withFirebaseAppCheck.setAppCheckProviderFactory. Until then the iOS SDK's default applies: the debug provider on a simulator, DeviceCheck on a device.JS: the JS SDK starts App Check for an app once, with its provider (
initializeAppCheck). The first installAppCheckProviderFactory does that, and the instance has no token before. Afterwards a factory of your own can still replace another one of your own. The JS SDK's own providers (the debug provider and reCAPTCHA) can neither replace a provider nor be replaced: installAppCheckProviderFactory throws then.
Firebase App Check, mirroring com.google.firebase.appcheck.FirebaseAppCheck from the Firebase Android SDK. It attests that requests to Firebase backends come from your app, and gives you tokens for your own backend.
Tokens come from the AppCheckProvider of the installed AppCheckProviderFactory. That factory can be com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory, com.google.firebase.appcheck.playintegrity.PlayIntegrityAppCheckProviderFactory (Android only), com.google.firebase.appcheck.recaptcha.RecaptchaAppCheckProviderFactory, or a factory of your own.
The platform SDKs install a factory differently:
Android: installAppCheckProviderFactory replaces the provider of this app at any time.
Apple: the iOS SDK keeps one factory for the whole process. It reads that factory when an app is configured, and creates the app's App Check then. installAppCheckProviderFactory sets the factory, so it only applies to apps configured afterwards. For the default app, set it before
Firebase.initializefrom Apple code withFirebaseAppCheck.setAppCheckProviderFactory. Until then the iOS SDK's default applies: the debug provider on a simulator, DeviceCheck on a device.JS: the JS SDK starts App Check for an app once, with its provider (
initializeAppCheck). The first installAppCheckProviderFactory does that, and the instance has no token before. Afterwards a factory of your own can still replace another one of your own. The JS SDK's own providers (the debug provider and reCAPTCHA) can neither replace a provider nor be replaced: installAppCheckProviderFactory throws then.
Constructors
Types
Receives each new App Check token, mirroring com.google.firebase.appcheck.FirebaseAppCheck.AppCheckListener.
Receives each new App Check token, mirroring com.google.firebase.appcheck.FirebaseAppCheck.AppCheckListener.
Receives each new App Check token, mirroring com.google.firebase.appcheck.FirebaseAppCheck.AppCheckListener.
Receives each new App Check token, mirroring com.google.firebase.appcheck.FirebaseAppCheck.AppCheckListener.
Receives each new App Check token, mirroring com.google.firebase.appcheck.FirebaseAppCheck.AppCheckListener.
Functions
Registers listener for new App Check tokens. It is not called when a token expires. On Android and JS it is also called right away with the cached token when that is still valid; the iOS SDK reports new tokens only.
Registers listener for new App Check tokens. It is not called when a token expires. On Android and JS it is also called right away with the cached token when that is still valid; the iOS SDK reports new tokens only.
Registers listener for new App Check tokens. It is not called when a token expires. On Android and JS it is also called right away with the cached token when that is still valid; the iOS SDK reports new tokens only.
Registers listener for new App Check tokens. It is not called when a token expires. On Android and JS it is also called right away with the cached token when that is still valid; the iOS SDK reports new tokens only.
Registers listener for new App Check tokens. It is not called when a token expires. On Android and JS it is also called right away with the cached token when that is still valid; the iOS SDK reports new tokens only.
Requests an App Check token. Use it only for requests to your own backend: requests to Firebase backends get a token automatically.
Requests an App Check token. Use it only for requests to your own backend: requests to Firebase backends get a token automatically.
Requests an App Check token. Use it only for requests to your own backend: requests to Firebase backends get a token automatically.
Requests an App Check token. Use it only for requests to your own backend: requests to Firebase backends get a token automatically.
Requests an App Check token. Use it only for requests to your own backend: requests to Firebase backends get a token automatically.
Requests a limited-use App Check token, for a backend with replay protection. It does not replace the token that getAppCheckToken caches.
Requests a limited-use App Check token, for a backend with replay protection. It does not replace the token that getAppCheckToken caches.
Requests a limited-use App Check token, for a backend with replay protection. It does not replace the token that getAppCheckToken caches.
Requests a limited-use App Check token, for a backend with replay protection. It does not replace the token that getAppCheckToken caches.
Requests a limited-use App Check token, for a backend with replay protection. It does not replace the token that getAppCheckToken caches.
Installs factory, replacing the factory installed before. Automatic token refresh follows the app's data collection setting (the iOS SDK keeps its own default there). See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before, and sets whether App Check refreshes its token automatically. See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before. Automatic token refresh follows the app's data collection setting (the iOS SDK keeps its own default there). See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before, and sets whether App Check refreshes its token automatically. See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before. Automatic token refresh follows the app's data collection setting (the iOS SDK keeps its own default there). See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before, and sets whether App Check refreshes its token automatically. See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before. Automatic token refresh follows the app's data collection setting (the iOS SDK keeps its own default there). See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before, and sets whether App Check refreshes its token automatically. See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before. Automatic token refresh follows the app's data collection setting (the iOS SDK keeps its own default there). See the class documentation for when the factory takes effect on each platform.
Installs factory, replacing the factory installed before, and sets whether App Check refreshes its token automatically. See the class documentation for when the factory takes effect on each platform.
Unregisters a listener registered with addAppCheckListener.
Unregisters a listener registered with addAppCheckListener.
Unregisters a listener registered with addAppCheckListener.
Unregisters a listener registered with addAppCheckListener.
Unregisters a listener registered with addAppCheckListener.
Sets whether App Check refreshes its token automatically before it expires.
Sets whether App Check refreshes its token automatically before it expires.
Sets whether App Check refreshes its token automatically before it expires.
Sets whether App Check refreshes its token automatically before it expires.
Sets whether App Check refreshes its token automatically before it expires.