refreshCurrentUser method
Refreshes the current logged-in user data.
Clears the cached user data and retrieves it again.
Returns a Future
that completes with the refreshed user data, or null
if no user is logged in.
Implementation
Future<T?> refreshCurrentUser() async {
currentUser = null;
await CoffeeStorage.clearLoggedUser();
await CoffeeStorage.clearAllCache();
return getCurrentUser();
}