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 Long

Destructuring declaration for AppCheckToken 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 for AppCheckToken to provide token.

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