Encapsulates an App Check token, which are used to access Firebase services protected by App Check.
JSON representation
{"attestationToken": string,"ttl": string}
Fields
attestationToken
string
An App Check token.
App Check tokens are signed JWTs containing claims that identify the attested app and Firebase project. This token is used to access Firebase services protected by App Check.
The duration from the time this token is minted until its expiration. This field is intended to ease client-side token management, since the client may have clock skew, but is still able to accurately measure a duration.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-05 UTC."],[],[],null,["# ExchangeAppAttestAttestationResponse\n\nResponse message for the [ExchangeAppAttestAttestation](/docs/reference/appcheck/rest/v1beta/projects.apps/exchangeAppAttestAttestation#google.firebase.appcheck.v1beta.TokenExchangeService.ExchangeAppAttestAttestation) method.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"artifact\": string, \"attestationToken\": { object (/docs/reference/appcheck/rest/v1beta/ExchangeAppAttestAttestationResponse#AttestationTokenResponse) }, \"appCheckToken\": { object (/docs/reference/appcheck/rest/v1beta/AppCheckToken) } } ``` |\n\n| Fields ||\n|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `artifact` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` An artifact that can be used in future calls to [ExchangeAppAttestAssertion](/docs/reference/appcheck/rest/v1beta/projects.apps/exchangeAppAttestAssertion#google.firebase.appcheck.v1beta.TokenExchangeService.ExchangeAppAttestAssertion). A base64-encoded string. |\n| `attestationToken` **(deprecated)** | `object (`[AttestationTokenResponse](/docs/reference/appcheck/rest/v1beta/ExchangeAppAttestAttestationResponse#AttestationTokenResponse)`)` | This field is deprecated; it has been renamed to [`app_check_token`](/docs/reference/appcheck/rest/v1beta/ExchangeAppAttestAttestationResponse#FIELDS.app_check_token). Encapsulates an App Check token. |\n| `appCheckToken` | `object (`[AppCheckToken](/docs/reference/appcheck/rest/v1beta/AppCheckToken)`)` Encapsulates an App Check token. |\n\nAttestationTokenResponse\n------------------------\n\n| This object is deprecated; it has been renamed to [AppCheckToken](/docs/reference/appcheck/rest/v1beta/AppCheckToken).\nEncapsulates an *App Check token*, which are used to access Firebase services protected by App Check.\n\n| JSON representation |\n|-------------------------------------------------------|\n| ``` { \"attestationToken\": string, \"ttl\": string } ``` |\n\n| Fields ||\n|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `attestationToken` | `string` An App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/html/rfc7519) containing claims that identify the attested app and Firebase project. This token is used to access Firebase services protected by App Check. |\n| `ttl` | `string (`[Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)` format)` The duration from the time this token is minted until its expiration. This field is intended to ease client-side token management, since the client may have clock skew, but is still able to accurately measure a duration. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `\"3.5s\"`. |"]]