VerifyAppCheckTokenResponse interface
Stay organized with collections
Save and categorize content based on your preferences.
Interface representing a verified App Check token response.
Signature:
export interface VerifyAppCheckTokenResponse
Properties
Property |
Type |
Description |
alreadyConsumed |
boolean |
Indicates weather this token was already consumed. If this is the first time AppCheck.verifyToken() method has seen this token, this field will contain the value false . The given token will then be marked as already_consumed for all future invocations of this AppCheck.verifyToken() method for this token.When this field is true , the caller is attempting to reuse a previously consumed token. You should take precautions against such a caller; for example, you can take actions such as rejecting the request or ask the caller to pass additional layers of security checks. |
appId |
string |
The App ID corresponding to the App the App Check token belonged to. |
token |
DecodedAppCheckToken |
The decoded Firebase App Check token. |
VerifyAppCheckTokenResponse.alreadyConsumed
Indicates weather this token was already consumed. If this is the first time AppCheck.verifyToken() method has seen this token, this field will contain the value false
. The given token will then be marked as already_consumed
for all future invocations of this AppCheck.verifyToken() method for this token.
When this field is true
, the caller is attempting to reuse a previously consumed token. You should take precautions against such a caller; for example, you can take actions such as rejecting the request or ask the caller to pass additional layers of security checks.
Signature:
alreadyConsumed?: boolean;
VerifyAppCheckTokenResponse.appId
The App ID corresponding to the App the App Check token belonged to.
Signature:
appId: string;
VerifyAppCheckTokenResponse.token
The decoded Firebase App Check token.
Signature:
token: DecodedAppCheckToken;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-09 UTC.
[null,null,["Last updated 2023-05-09 UTC."],[],[],null,["# VerifyAppCheckTokenResponse interface\n\nInterface representing a verified App Check token response.\n\n**Signature:** \n\n export interface VerifyAppCheckTokenResponse \n\nProperties\n----------\n\n| Property | Type | Description |\n|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [alreadyConsumed](./firebase-admin.app-check.verifyappchecktokenresponse.md#verifyappchecktokenresponsealreadyconsumed) | boolean | Indicates weather this token was already consumed. If this is the first time [AppCheck.verifyToken()](./firebase-admin.app-check.appcheck.md#appcheckverifytoken) method has seen this token, this field will contain the value `false`. The given token will then be marked as `already_consumed` for all future invocations of this [AppCheck.verifyToken()](./firebase-admin.app-check.appcheck.md#appcheckverifytoken) method for this token.When this field is `true`, the caller is attempting to reuse a previously consumed token. You should take precautions against such a caller; for example, you can take actions such as rejecting the request or ask the caller to pass additional layers of security checks. |\n| [appId](./firebase-admin.app-check.verifyappchecktokenresponse.md#verifyappchecktokenresponseappid) | string | The App ID corresponding to the App the App Check token belonged to. |\n| [token](./firebase-admin.app-check.verifyappchecktokenresponse.md#verifyappchecktokenresponsetoken) | [DecodedAppCheckToken](./firebase-admin.app-check.decodedappchecktoken.md#decodedappchecktoken_interface) | The decoded Firebase App Check token. |\n\nVerifyAppCheckTokenResponse.alreadyConsumed\n-------------------------------------------\n\nIndicates weather this token was already consumed. If this is the first time [AppCheck.verifyToken()](./firebase-admin.app-check.appcheck.md#appcheckverifytoken) method has seen this token, this field will contain the value `false`. The given token will then be marked as `already_consumed` for all future invocations of this [AppCheck.verifyToken()](./firebase-admin.app-check.appcheck.md#appcheckverifytoken) method for this token.\n\nWhen this field is `true`, the caller is attempting to reuse a previously consumed token. You should take precautions against such a caller; for example, you can take actions such as rejecting the request or ask the caller to pass additional layers of security checks.\n\n**Signature:** \n\n alreadyConsumed?: boolean;\n\nVerifyAppCheckTokenResponse.appId\n---------------------------------\n\nThe App ID corresponding to the App the App Check token belonged to.\n\n**Signature:** \n\n appId: string;\n\nVerifyAppCheckTokenResponse.token\n---------------------------------\n\nThe decoded Firebase App Check token.\n\n**Signature:** \n\n token: DecodedAppCheckToken;"]]