From 03e3a0bcbd8eb171806d0eb3b993f36e45c307d0 Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Wed, 18 Sep 2024 11:05:11 +0200 Subject: [PATCH] v1.0.4 Signed-off-by: Hans Kokx --- CHANGELOG.md | 3 +++ .../services/authentication/authentication_service.dart | 8 +++----- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) 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