Validates a
SafetyNet token
. If valid, returns an
AppCheckToken
.
HTTP request
POST https://firebaseappcheck.googleapis.com/v1/{app=projects/*/apps/*}:exchangeSafetyNetToken
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
app
|
Required. The relative resource name of the Android app, in the format:
If necessary, the
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "safetyNetToken": string } |
Fields | |
---|---|
safetyNetToken
|
Required. The SafetyNet attestation response issued to your app. |
Response body
If successful, the response body contains an instance of
AppCheckToken
.