mapError

Transforms the error on failure, e.g. into another PasskeyError; successes pass through unchanged.