continue authentication

This commit is contained in:
2025-03-22 01:42:20 -05:00
parent 5b09333f0d
commit 03c8f3461e
8 changed files with 58 additions and 64 deletions

View File

@@ -117,17 +117,18 @@ class _UISettingsWidgetState extends State<UISettingsWidget> {
),
),
);
if (response.statusCode == 500) {
if (response.statusCode == 401) {
displayAuthError();
authProvider.logoff();
return;
}
} catch (e) {
debugPrint('$e');
displayAuthError();
}
})
.catchError((e) {
debugPrint('$e');
displayAuthError();
});
}