apiMe method

Future<User> apiMe()

Implementation

Future<User> apiMe() async {
  return apiGet("/api/me").then((response) {
    debug("Success apiMe response ${response.toString()}");
    User user = User.fromJson(response);
    if (_session != null) {
      _session!.user = user;
      storageProvider.saveSession(_session!);
    }
    return user;
  });
}