Add identity server to AuthenticationState

This commit is contained in:
ismailgulek
2022-06-07 16:18:54 +03:00
parent e142365fa8
commit e705b8db46
2 changed files with 10 additions and 3 deletions
@@ -145,7 +145,10 @@ class AuthenticationService: NSObject {
// The previously used homeserver is re-used as `startFlow` will be called again a replace it anyway.
let address = state.homeserver.addressFromUser ?? state.homeserver.address
self.state = AuthenticationState(flow: .login, homeserverAddress: address)
let identityServer = state.identityServer
self.state = AuthenticationState(flow: .login,
homeserverAddress: address,
identityServer: identityServer)
}
/// Continues an SSO flow when completion comes via a deep link.