restoreItem

Restores the value associated with a key in secure storage. This suspending function handles the result directly and throws an exception if an error occurs.

Return

The restored value, or null if the key is not found or cannot be restored.

Parameters

key

The key to restore the value for.

Throws

If an error occurs during the operation.