Stay organized with collections
Save and categorize content based on your preferences.
Resource: SafetyNetConfig
An app's SafetyNet configuration object. This configuration controls certain properties of the AppCheckToken returned by ExchangeSafetyNetToken, such as its ttl.
Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by SafetyNet; please register them via the Firebase Console or programmatically via the Firebase Management Service.
JSON representation
{"name": string,"tokenTtl": string}
Fields
name
string
Required. The relative resource name of the SafetyNet configuration object, in the format:
Specifies the duration for which App Check tokens exchanged from SafetyNet tokens will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
[null,null,["Last updated 2024-04-05 UTC."],[],[],null,["Resource: SafetyNetConfig\n| The SafetyNet Attestation API is deprecated and has been replaced by the Play Integrity API. Support for SafetyNet will be removed from App Check by the migration deadline. We strongly recommend that App Check customers [migrate to the Play Integrity API](https://firebase.google.com/docs/app-check/android/play-integrity-provider). [Learn more](https://developer.android.com/training/safetynet/deprecation-timeline).\nAn app's SafetyNet configuration object. This configuration controls certain properties of the [`AppCheckToken`](/docs/reference/appcheck/rest/v1beta/AppCheckToken) returned by [ExchangeSafetyNetToken](/docs/reference/appcheck/rest/v1beta/projects.apps/exchangeSafetyNetToken#google.firebase.appcheck.v1beta.TokenExchangeService.ExchangeSafetyNetToken), such as its [ttl](/docs/reference/appcheck/rest/v1beta/AppCheckToken#FIELDS.ttl).\n\nNote that your registered SHA-256 certificate fingerprints are used to validate tokens issued by SafetyNet; please register them via the Firebase Console or programmatically via the [Firebase Management Service](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create)."]]