STRUCT

AttestationConfiguration

Contents

public struct AttestationConfiguration

An AttestationConfiguration contains the DeviceCheck attestation configuration settings to be used on Haapi requests. This configuration is only applicable to physical devices due to attestation not working when running in simulators.

Methods

init(useAttestation:attestationMaxRetries:)

public init(useAttestation: Bool = true, attestationMaxRetries: Int = 3)

Creates an instance of AttestationConfiguration.

Parameters

Name Description
useAttestation Enables the device attestation mechanism (only works on physical devices). Default value is true.
attestationMaxRetries The maximum allowed retry count for attestation/assertion retries. Providing a value lower than 1 disables the retry mechanism. Default value is 3.