getLoggedUserDetailsResponse method

Future<Response> getLoggedUserDetailsResponse(
  1. String sessionToken
)
inherited

Endpoint used: GET /user/me

Returns a http response of the user details associated with the sessionToken

Implementation

Future<http.Response> getLoggedUserDetailsResponse(
    String sessionToken) async {
  final unencodedPath = '/user/me';
  final uri = 'https://$AUTHORITY$unencodedPath';
  var response = await http.get(Uri.parse(uri), headers: {
    HttpHeaders.contentTypeHeader: 'application/json',
    HttpHeaders.authorizationHeader: 'Bearer $sessionToken'
  });
  return response;
}