getTelemetryId

abstract suspend fun getTelemetryId(): String

Fetches a DFP telemetry ID from the local device fingerprinting provider. The ID is passed to your backend for use in Stytch lookup calls.

Kotlin:

val telemetryId = StytchB2B.dfp.getTelemetryId()

iOS:

let telemetryId = try await StytchB2B.dfp.getTelemetryId()

React Native:

const telemetryId = await StytchB2B.dfp.getTelemetryId()

Return

The DFP telemetry ID string.

Throws

DFPNotConfiguredError

if DFP was not configured during SDK initialization.

if the coroutine is cancelled.