diff --git a/CHANGELOG.md b/CHANGELOG.md index 38525c3..b8e5812 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.4 + +* Resolved an issue with authentication using the ArcaneAuthenticationService when logging in with an email and password ## 1.0.3+1 diff --git a/lib/src/services/authentication/authentication_service.dart b/lib/src/services/authentication/authentication_service.dart index 07ff758..703fdd7 100644 --- a/lib/src/services/authentication/authentication_service.dart +++ b/lib/src/services/authentication/authentication_service.dart @@ -186,13 +186,11 @@ class ArcaneAuthenticationService extends ArcaneService { password: password, ); - if (result.isFailure) { - throw Exception(result.error); + if (result.isSuccess) { + setAuthenticated(); + if (onLoggedIn != null) await onLoggedIn(); } - setAuthenticated(); - if (onLoggedIn != null) await onLoggedIn(); - return result; } diff --git a/pubspec.yaml b/pubspec.yaml index ef6e83a..5f23a24 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: arcane_framework description: "Agnostic Reusable Component Architecture for New Ecosystems: a modern framework for bootstrapping new applications" -version: 1.0.3+1 +version: 1.0.4 repository: https://github.com/hanskokx/arcane_framework issue_tracker: https://github.com/hanskokx/arcane_framework/issues