diff --git a/lib/features/auth/auth_screen/auth_screen.dart b/lib/features/auth/auth_screen/auth_screen.dart index 998cfc76..9d1a45ab 100644 --- a/lib/features/auth/auth_screen/auth_screen.dart +++ b/lib/features/auth/auth_screen/auth_screen.dart @@ -86,10 +86,14 @@ class _AuthScreenState extends State { await _controller.runJavaScript(jsChannelAuthScript); } else if (url.contains('profile')) { if (credentialsInStorage) { - await CredentialsStorage.saveCredentials(email, password); await loginInApplication(); } else { - await logoutFromWeb(); + if (email.isNotEmpty && password.isNotEmpty) { + await CredentialsStorage.saveCredentials(email, password); + await loginInApplication(); + } else { + await logoutFromWeb(); + } } } else { if (tokenInStorage && credentialsInStorage) {