Skip to main content

apps

Creates, updates, deletes, gets or lists an apps resource.

Overview

Nameapps
TypeResource
Idfirebase.appcheck.apps

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
exchange_safety_net_tokenexecprojectsId, appsIdValidates a SafetyNet token. If valid, returns an AppCheckToken.
generate_play_integrity_challengeexecprojectsId, appsIdGenerates a challenge that protects the integrity of an immediately following integrity verdict request to the Play Integrity API. The next call to ExchangePlayIntegrityToken using the resulting integrity token will verify the presence and validity of the challenge. A challenge should not be reused for multiple calls.
exchange_play_integrity_tokenexecprojectsId, appsIdValidates an integrity verdict response token from Play Integrity. If valid, returns an AppCheckToken.
exchange_device_check_tokenexecprojectsId, appsIdAccepts a device_token issued by DeviceCheck, and attempts to validate it with Apple. If valid, returns an AppCheckToken.
exchange_recaptcha_v3_tokenexecprojectsId, appsIdValidates a reCAPTCHA v3 response token. If valid, returns an AppCheckToken.
exchange_recaptcha_enterprise_tokenexecprojectsId, appsIdValidates a reCAPTCHA Enterprise response token. If valid, returns an AppCheckToken.
exchange_custom_tokenexecprojectsId, appsIdValidates a custom token signed using your project's Admin SDK service account credentials. If valid, returns an AppCheckToken.
exchange_debug_tokenexecprojectsId, appsIdValidates a debug token secret that you have previously created using CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive quota is enforced on this method to prevent accidental exposure of the app to abuse.
generate_app_attest_challengeexecprojectsId, appsIdGenerates a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.
exchange_app_attest_attestationexecprojectsId, appsIdAccepts an App Attest CBOR attestation and verifies it with Apple using your preconfigured team and bundle IDs. If valid, returns an attestation artifact that can later be exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For convenience and performance, this method's response object will also contain an AppCheckToken (if the verification is successful).
exchange_app_attest_assertionexecprojectsId, appsIdAccepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
appsIdstring
projectsIdstring

Lifecycle Methods

Validates a SafetyNet token. If valid, returns an AppCheckToken.

EXEC firebase.appcheck.apps.exchange_safety_net_token 
@projectsId='{{ projectsId }}' --required,
@appsId='{{ appsId }}' --required
@@json=
'{
"safetyNetToken": "{{ safetyNetToken }}"
}';