AppCheckToken

abstract classAppCheckToken


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

abstractLong

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

abstractString

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

Extension functions

operatorString

Destructuring declaration forAppCheckToken to provide token.

operatorLong

Destructuring declaration forAppCheckToken to provide expireTimeMillis.

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 forAppCheckToken to provide token.

Returns
String

the token of theAppCheckToken

component2

operator fun AppCheckToken.component2(): Long

Destructuring declaration forAppCheckToken to provide expireTimeMillis.

Returns
Long

the expireTimeMillis of theAppCheckToken

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.