Package-level declarations

Types

Link copied to clipboard
typealias SessionId = String
Link copied to clipboard
class SessionManager(sessionId: SessionId?, storage: SessionStorage, identify: suspend () -> FingerprintIdentification?)

Manages the lifecycle of a Sonar fraud-detection session: creation, refresh, keep-alive, and per-account local persistence.

Link copied to clipboard
data class SessionRequestBody(val fingerprint_visitor_id: String? = null, val account_id: String? = null, val sealed_result: String? = null)

Request body for creating or updating a Sonar session.

Link copied to clipboard
data class SessionResponse(val sonar_session_id: String)
Link copied to clipboard
interface SessionStorage

Backing store for Sonar session identifiers, keyed by Frame account. accountId = null addresses the pre-account slot, holding a session minted before the account was known so it can be adopted once it is.

Link copied to clipboard

SessionStorage backed by SharedPreferences. Keying per account is what stops one account's session being reused by the next account on the same device.

Link copied to clipboard