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
|
/// Logs the current user out. Upon successful logout, `status` will be set to
|
||||||
/// `AuthenticationStatus.unauthenticated`.
|
/// `AuthenticationStatus.unauthenticated`.
|
||||||
Future<void> logOut({required VoidCallback onLoggedOut}) async {
|
Future<void> logOut() async {
|
||||||
if (_mocked) return;
|
if (_mocked) return;
|
||||||
if (status == AuthenticationStatus.unauthenticated) return;
|
if (status == AuthenticationStatus.unauthenticated) return;
|
||||||
|
|
||||||
@@ -112,7 +112,6 @@ class ArcaneAuthenticationService extends ArcaneService {
|
|||||||
await loggedOut.fold(
|
await loggedOut.fold(
|
||||||
onSuccess: (_) async {
|
onSuccess: (_) async {
|
||||||
setUnauthenticated();
|
setUnauthenticated();
|
||||||
onLoggedOut();
|
|
||||||
},
|
},
|
||||||
onError: (e) {
|
onError: (e) {
|
||||||
throw Exception(e);
|
throw Exception(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user