AppCheckToken

abstract class AppCheckToken


Class to hold tokens emitted by the Firebase App Check service which are minted upon a successful application verification. These tokens are the federated output of a verification flow, the structure of which is independent of the mechanism by which the application was verified.

Summary

Public constructors

Public functions

abstract Long

Returns the time at which the token will expire in milliseconds since epoch.

abstract String

Returns the raw JWT attesting to this application’s identity.

Extension functions

operator String

Destructuring declaration for AppCheckToken to provide token.

operator String

This function is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

operator Long

Destructuring declaration for AppCheckToken to provide expireTimeMillis.

operator Long

This function is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Public constructors

AppCheckToken

AppCheckToken()

Public functions

getExpireTimeMillis

abstract fun getExpireTimeMillis(): Long

Returns the time at which the token will expire in milliseconds since epoch.

getToken

abstract fun getToken(): String

Returns the raw JWT attesting to this application’s identity.

Extension functions

component1

operator fun AppCheckToken.component1(): String

Destructuring declaration for AppCheckToken to provide token.

Returns
String

the token of the AppCheckToken

component1

operator fun AppCheckToken.component1(): String

Destructuring declaration for AppCheckToken to provide token.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-appcheck-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Returns
String

the token of the AppCheckToken

component2

operator fun AppCheckToken.component2(): Long

Destructuring declaration for AppCheckToken to provide expireTimeMillis.

Returns
Long

the expireTimeMillis of the AppCheckToken

component2

operator fun AppCheckToken.component2(): Long

Destructuring declaration for AppCheckToken to provide expireTimeMillis.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-appcheck-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Returns
Long

the expireTimeMillis of the AppCheckToken