getCurrentUser method

Future<User> getCurrentUser()

Fetches the current user (using token 0 as placeholder). In a real app, you would get the token from the local storage.

Implementation

Future<User> getCurrentUser() async {
  return getUserByToken(0);
}