From 4b9c9aec9256fd56d02a1c3f33132b20b1ebdb80 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 16 Jun 2025 01:30:19 +0800 Subject: [PATCH] :bug: Fixes ignored wrong exception in sign in with apple --- lib/screens/account/me/settings_connections.dart | 2 +- lib/screens/auth/login.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/account/me/settings_connections.dart b/lib/screens/account/me/settings_connections.dart index b0f512a..f07f241 100644 --- a/lib/screens/account/me/settings_connections.dart +++ b/lib/screens/account/me/settings_connections.dart @@ -150,7 +150,7 @@ class AccountConnectionNewSheet extends HookConsumerWidget { Navigator.pop(context, true); } } catch (err) { - if (err is SignInWithAppleCredentialsException) return; + if (err is SignInWithAppleAuthorizationException) return; showErrorAlert(err); } finally { if (context.mounted) hideLoadingModal(context); diff --git a/lib/screens/auth/login.dart b/lib/screens/auth/login.dart index ca6c9ac..d747a69 100644 --- a/lib/screens/auth/login.dart +++ b/lib/screens/auth/login.dart @@ -597,7 +597,7 @@ class _LoginLookupScreen extends HookConsumerWidget { if (context.mounted) Navigator.pop(context, true); }); } catch (err) { - if (err is SignInWithAppleCredentialsException) return; + if (err is SignInWithAppleAuthorizationException) return; showErrorAlert(err); } finally { if (context.mounted) hideLoadingModal(context);