refresh

suspend fun refresh(): List<SeamCredential>

Refreshes the credentials for the current app user.

Manually triggers a sync with the server to fetch latest credentials. This operation requires an active internet connection.

The credentials StateFlow will be updated before this method returns. In most cases, automatic background sync makes manual refresh unnecessary.

Return

The updated list of credentials after refresh completes.

Throws

if the SDK has not been initialized yet.

if no internet connection is available.