chore: Fix oidc login on web
This commit is contained in:
parent
a422d07d63
commit
bed0a89d65
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ Future<void> oidcLoginFlow(
|
||||||
) async {
|
) async {
|
||||||
Logs().i('Starting Matrix Native OIDC Flow...');
|
Logs().i('Starting Matrix Native OIDC Flow...');
|
||||||
final redirectUrl = kIsWeb
|
final redirectUrl = kIsWeb
|
||||||
? Uri.parse(html.window.location.href).resolveUri(Uri(query: ''))
|
? Uri.parse(html.window.location.href.split('#').first.split('?').first)
|
||||||
: (PlatformInfos.isMobile || PlatformInfos.isWeb || PlatformInfos.isMacOS)
|
: (PlatformInfos.isMobile || PlatformInfos.isWeb || PlatformInfos.isMacOS)
|
||||||
? Uri.parse('${AppConfig.appOpenUrlScheme.toLowerCase()}:/login')
|
? Uri.parse('${AppConfig.appOpenUrlScheme.toLowerCase()}:/login')
|
||||||
: Uri.parse('http://localhost:3001/login');
|
: Uri.parse('http://localhost:3001/login');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue