DebugAppCheckProviderFactory

The factory of the debug provider, mirroring com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory (firebase-appcheck-debug). For emulators, simulators and CI: the provider exchanges a debug token for App Check tokens, once you have added that debug token in the Firebase console. Do not use it in builds for real users.

The debug token comes from the platform SDK:

  • Android generates one, keeps it and logs it.

  • Apple reads the AppCheckDebugToken environment variable, or generates one, keeps it and logs it.

  • JS switches the JS SDK to its debug mode (self.FIREBASE_APPCHECK_DEBUG_TOKEN = true, unless the page set a token there itself), which logs a generated token to the console. The JS SDK reads that setting the first time App Check starts in the page, so install this factory before any other.

The factory of the debug provider, mirroring com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory (firebase-appcheck-debug). For emulators, simulators and CI: the provider exchanges a debug token for App Check tokens, once you have added that debug token in the Firebase console. Do not use it in builds for real users.

The debug token comes from the platform SDK:

  • Android generates one, keeps it and logs it.

  • Apple reads the AppCheckDebugToken environment variable, or generates one, keeps it and logs it.

  • JS switches the JS SDK to its debug mode (self.FIREBASE_APPCHECK_DEBUG_TOKEN = true, unless the page set a token there itself), which logs a generated token to the console. The JS SDK reads that setting the first time App Check starts in the page, so install this factory before any other.

Installing it turns on the JS SDK's debug mode, in which the JS SDK exchanges the debug token itself, so App Check only falls back on create's provider when debug mode came too late: it fails with an explanation.

Installing it turns on the JS SDK's debug mode, in which the JS SDK exchanges the debug token itself, so App Check only falls back on create's provider when debug mode came too late: it fails with an explanation.

Types

Link copied to clipboard
actual object Companion
actual object Companion
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
val ios: FIRAppCheckDebugProviderFactory

The underlying Firebase iOS SDK factory, which is installed as it is.

Functions

Link copied to clipboard
actual open override fun create(firebaseApp: FirebaseApp): AppCheckProvider

Returns the provider of firebaseApp, creating it if needed.

actual open override fun create(firebaseApp: FirebaseApp): AppCheckProvider

Returns the provider of firebaseApp, creating it if needed.

expect open override fun create(firebaseApp: FirebaseApp): AppCheckProvider

Returns the debug provider of firebaseApp.

actual open override fun create(firebaseApp: FirebaseApp): AppCheckProvider

Returns the provider of firebaseApp, creating it if needed.

actual open override fun create(firebaseApp: FirebaseApp): AppCheckProvider

Returns the provider of firebaseApp, creating it if needed.

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String