//
// Copyright © 2024 Nevis Security AG. All rights reserved.
//

import Foundation

class PasswordVerifyMessage: ChannelInMessage {
	// MARK: Properties

	let password: String

	// MARK: Decodable

	enum CodingKeys: String, CodingKey {
		case password
	}

	required init(from decoder: Decoder) throws {
		let container = try decoder.container(keyedBy: CodingKeys.self)
		self.password = try container.decode([String].self, forKey: .password).joined()
		try super.init(from: decoder)
	}
}
