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 {
|
void ssoLoginAction(String? id) async {
|
||||||
final redirectUrl = kIsWeb
|
final redirectUrl = kIsWeb
|
||||||
? '${html.window.origin!}/auth.html'
|
? Uri.parse(html.window.location.href)
|
||||||
|
.resolveUri(
|
||||||
|
Uri(pathSegments: ['auth.html']),
|
||||||
|
)
|
||||||
|
.toString()
|
||||||
: isDefaultPlatform
|
: isDefaultPlatform
|
||||||
? '${AppConfig.appOpenUrlScheme.toLowerCase()}://login'
|
? '${AppConfig.appOpenUrlScheme.toLowerCase()}://login'
|
||||||
: 'http://localhost:3001//login';
|
: 'http://localhost:3001//login';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue