Remove unused callback from the ArcaneAuthenticationService during logout

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2024-09-13 11:23:52 +02:00
parent 2675cc0393
commit cdc44e8747
@@ -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);