mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
Remove unused callback from the ArcaneAuthenticationService during logout
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ class ArcaneAuthenticationService extends ArcaneService {
|
||||
|
||||
/// Logs the current user out. Upon successful logout, `status` will be set to
|
||||
/// `AuthenticationStatus.unauthenticated`.
|
||||
Future<void> logOut({required VoidCallback onLoggedOut}) async {
|
||||
Future<void> logOut() async {
|
||||
if (_mocked) return;
|
||||
if (status == AuthenticationStatus.unauthenticated) return;
|
||||
|
||||
@@ -112,7 +112,6 @@ class ArcaneAuthenticationService extends ArcaneService {
|
||||
await loggedOut.fold(
|
||||
onSuccess: (_) async {
|
||||
setUnauthenticated();
|
||||
onLoggedOut();
|
||||
},
|
||||
onError: (e) {
|
||||
throw Exception(e);
|
||||
|
||||
Reference in New Issue
Block a user