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 ac755f11f5
commit 59927e278c
9 changed files with 70 additions and 26 deletions
@@ -19,7 +19,7 @@ import Foundation
/// A WIP class that has common functionality to create a new session.
class SessionCreator {
/// Creates an `MXSession` using the supplied credentials and REST client.
func createSession(credentials: MXCredentials, client: MXRestClient) -> MXSession {
func createSession(credentials: MXCredentials, client: AuthenticationRestClient) -> MXSession {
// Report the new account in account manager
if credentials.identityServer == nil {
#warning("Check that the client is actually updated with this info?")