Add AuthenticationRestClient protocol as an authentication interface to MXRestClient.

This commit is contained in:
Doug
2022-05-19 13:18:47 +01:00
committed by Doug
parent 0d6344a0bf
commit 82d9d69d03
9 changed files with 70 additions and 26 deletions
@@ -16,7 +16,7 @@
import Foundation
/// An `Encodable` type that can be used as the parameters of a login request.
/// A `DictionaryEncodable` type that can be used as the parameters of a login request.
protocol LoginParameters: DictionaryEncodable {
var type: String { get }
}
@@ -94,11 +94,10 @@ struct LoginPasswordParameters: LoginParameters {
}
}
/// The parameters used when checking the user has confirmed their email to reset their password.
/// The parameters used when checking that the user has confirmed their email in order to reset their password.
struct CheckResetPasswordParameters: DictionaryEncodable {
/// Authentication parameters
let auth: AuthenticationParameters
/// The new password
let newPassword: String