mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 08:32:53 +02:00
MESSENGER-3707 new login flow and welcome integration
This commit is contained in:
+6
@@ -220,6 +220,12 @@ class AuthenticationService: NSObject {
|
||||
/// - Parameter homeserverAddress: The homeserver string entered by the user.
|
||||
/// - Returns: A tuple containing the REST client for the server along with the homeserver state containing the login flows.
|
||||
private func loginFlow(for homeserverAddress: String) async throws -> (AuthenticationRestClient, AuthenticationState.Homeserver) {
|
||||
|
||||
// bwi: we start with an empty url, element tries to load a wellknown from localhost for 15 seconds in that case
|
||||
guard homeserverAddress.count > 0 else {
|
||||
throw AuthenticationError.invalidHomeserver
|
||||
}
|
||||
|
||||
let homeserverAddress = HomeserverAddress.sanitized(homeserverAddress)
|
||||
|
||||
guard var homeserverURL = URL(string: homeserverAddress) else {
|
||||
|
||||
Reference in New Issue
Block a user