safetyNetAttestationWithFormattedNoncePayload method Null safety

Future<JWSPayloadModel> safetyNetAttestationWithFormattedNoncePayload(
  1. Uint8List nonce
)

Request the Safety Net Attestation with a list of bytes The response is the payload from the JSON Web Signature (JWS)

Implementation

static Future<JWSPayloadModel> safetyNetAttestationWithFormattedNoncePayload(
    Uint8List nonce) async {
  final String payload = await _channel.invokeMethod(
      'requestSafetyNetAttestation',
      {"nonce_bytes": nonce, "include_payload": true});

  return JWSPayloadModel.fromJSON(jsonDecode(payload));
}