isMigrationRequired

abstract suspend fun isMigrationRequired(context: Context): Boolean(source)

Returns true if legacy authenticator data exists and migration should proceed.

This is called as the first check in the migration pipeline. Return false to skip migration entirely (e.g. on a fresh install or after a previous successful migration).

Return

true if migration is needed, false to abort the migration early.

Parameters

context

The Android application context.