fix: Login with SSO on web
This commit is contained in:
parent
6998c87b62
commit
6f9da100a0
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue