fix auth flows

This commit is contained in:
Fabian Freund
2026-08-09 04:31:22 +02:00
parent d7055a6f44
commit 599fb997f1
21 changed files with 349 additions and 58 deletions
@@ -817,6 +817,11 @@ class _AppLinksModeSection extends HookConsumerWidget {
(s) => s.appLinkMarketplaceFallback,
),
);
final authExceptionsEnabled = ref.watch(
generalSettingsWithDefaultsProvider.select(
(s) => s.appLinkAuthExceptionsEnabled,
),
);
final rules = ref.watch(
generalSettingsWithDefaultsProvider.select((s) => s.appLinkRules),
);
@@ -887,6 +892,23 @@ class _AppLinksModeSection extends HookConsumerWidget {
);
},
),
SwitchListTile.adaptive(
contentPadding: EdgeInsets.zero,
title: const Text('Allow login app callbacks'),
subtitle: const Text(
'Let apps that opened a Custom Tab receive their login callback, '
'even when links are set to never open in apps',
),
value: authExceptionsEnabled,
onChanged: (value) async {
await ref
.read(saveGeneralSettingsControllerProvider.notifier)
.save(
(current) =>
current.copyWith.appLinkAuthExceptionsEnabled(value),
);
},
),
_AppLinkRulesSubsection(rules: rules),
],
),