haveCredentialsToRefresh

abstract suspend fun haveCredentialsToRefresh(document: Document): Boolean

Checks if there are credentials that should be fetched/refreshed for the document.

This is useful for checking if network I/O should be performed during credential refresh.

Return

true if there are credentials to refresh, false otherwise.

Parameters

document

Document for which credentials are being checked.