getCurrentUser method

Future<GetCurrentUserResponse> getCurrentUser()

Retrieves the current authenticated user.

Requires authentication.

Implementation

Future<GetCurrentUserResponse> getCurrentUser() async {
  return _retryPolicy.execute(() async {
    final json = await _apiClient.get(
      '/v1/me',
      requiresAuth: true,
    );

    return GetCurrentUserResponse.fromJson(json);
  });
}