fix: Login with SSO on web

pull/999/head
krille-chan 1 year ago
parent 6998c87b62
commit 6f9da100a0
No known key found for this signature in database

@ -117,7 +117,11 @@ class HomeserverPickerController extends State<HomeserverPicker> {
void ssoLoginAction(String? id) async {
final redirectUrl = kIsWeb
? '${html.window.origin!}/auth.html'
? Uri.parse(html.window.location.href)
.resolveUri(
Uri(pathSegments: ['auth.html']),
)
.toString()
: isDefaultPlatform
? '${AppConfig.appOpenUrlScheme.toLowerCase()}://login'
: 'http://localhost:3001//login';

Loading…
Cancel
Save