
        guard let item = result as? [String : Any],
            let data = item[kSecValueData as String] as? Data,
            let idString = item[kSecAttrAccount as String] as? String,
            let id = UUID(uuidString: idString) else {
                logger.error("No registration data in keychain")
                return nil