AppCheckToken

public 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 methods

abstract long

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

abstract @NonNullString

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

Extension functions

final @NonNullString

Destructuring declaration forAppCheckToken to provide token.

final long

Destructuring declaration forAppCheckToken to provide expireTimeMillis.

Public constructors

AppCheckToken

public AppCheckToken()

Public methods

getExpireTimeMillis

public abstract long getExpireTimeMillis()

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

getToken

public abstract @NonNullString getToken()

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

Extension functions

FirebaseAppCheckKt.component1

public final @NonNullString FirebaseAppCheckKt.component1(@NonNullAppCheckToken receiver)

Destructuring declaration forAppCheckToken to provide token.

Returns
@NonNullString

the token of theAppCheckToken

FirebaseAppCheckKt.component2

public final long FirebaseAppCheckKt.component2(@NonNullAppCheckToken receiver)

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.