getCurrentSessionFromServer method

Future<ParseResponse> getCurrentSessionFromServer()

Implementation

Future<ParseResponse> getCurrentSessionFromServer() async {
  try {
    const String path = '$keyEndPointSessions/me';
    final Uri url = getSanitisedUri(_client, path);

    final ParseNetworkResponse response = await _client.get(url.toString());

    return handleResponse<ParseSession>(
        this, response, ParseApiRQ.logout, _debug, parseClassName);
  } on Exception catch (e) {
    return handleException(e, ParseApiRQ.logout, _debug, parseClassName);
  }
}