getTelemetryId

abstract suspend fun getTelemetryId(): String

Returns a DFP telemetry ID generated by the Stytch device fingerprinting SDK. This is a local operation — it does not make a network call to the Stytch API. Pass the returned ID to your backend, which can use it in server-side Stytch DFP lookup calls.

Kotlin:

StytchConsumer.dfp.getTelemetryId()

iOS:

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

React Native:

StytchConsumer.dfp.getTelemetryId()

Return

The DFP telemetry ID string to pass to your backend.

Throws

DFPNotConfiguredError

if DFP was not configured during SDK initialization.

if the coroutine is cancelled.