chore: Update redirect android scheme

This commit is contained in:
Christian Kußowski 2026-03-07 08:21:50 +01:00
parent 9d229e04c6
commit e0c20f249b
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 5 additions and 4 deletions

View file

@ -31,7 +31,7 @@ abstract class AppConfig {
static const String howDoIGetStickersTutorial =
'https://fluffy.chat/faq/#how_do_i_get_stickers';
static const String appId = 'im.fluffychat.FluffyChat';
static const String appOpenUrlScheme = 'chat.fluffy';
static const String appOpenUrlScheme = 'im.fluffychat';
static const String sourceCodeUrl =
'https://github.com/krille-chan/fluffychat';

View file

@ -21,7 +21,7 @@ Future<void> oidcLoginFlow(
Logs().i('Starting Matrix Native OIDC Flow...');
final redirectUrl = kIsWeb
? Uri.parse(html.window.location.href.split('#').first.split('?').first)
: (PlatformInfos.isMobile || PlatformInfos.isWeb || PlatformInfos.isMacOS)
: (PlatformInfos.isMobile || PlatformInfos.isMacOS)
? Uri.parse('${AppConfig.appOpenUrlScheme.toLowerCase()}:/login')
: Uri.parse('http://localhost:3001/login');

View file

@ -13,15 +13,16 @@ Future<void> ssoLoginFlow(
BuildContext context,
bool signUp,
) async {
Logs().i('Starting legacy SSO Flow...');
final redirectUrl = kIsWeb
? Uri.parse(
html.window.location.href,
).resolveUri(Uri(pathSegments: ['auth.html'])).toString()
: (PlatformInfos.isMobile || PlatformInfos.isWeb || PlatformInfos.isMacOS)
: (PlatformInfos.isMobile || PlatformInfos.isMacOS)
? '${AppConfig.appOpenUrlScheme.toLowerCase()}://login'
: 'http://localhost:3001//login';
Logs().i('Starting legacy SSO Flow with redirect URL', redirectUrl);
final url = client.homeserver!.replace(
path: '/_matrix/client/v3/login/sso/redirect',
queryParameters: {