PlayIntegrityHelper

Helper for requesting Play Integrity tokens on Android.

Wraps the IntegrityManagerFactory API in a coroutine-friendly interface, allowing callers to await a signed integrity token without managing callbacks manually.

Typical usage:

val token = playIntegrityHelper.requestToken()
integrityRepository.verify(token)

Parameters

context

An Android Context used to initialise the IntegrityManagerFactory. An application context is preferred to avoid Activity leaks.

See also

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
suspend fun requestToken(): String

Requests a Play Integrity token from the Google Play Integrity API.