import type { GetCurrentUserResponse } from "@/types/proto/api/v1/auth_service_pb";
import { fetchJson } from "./apiClient";

// Clerk is the source of truth for authentication.
// This client is now only used to fetch the "current user" view
// backed by Clerk JWT on the backend.
export const authServiceClient = {
  async getCurrentUser(_request?: unknown): Promise<GetCurrentUserResponse> {
    void _request;
    const data = await fetchJson<GetCurrentUserResponse>("/auth/me", { method: "GET" });
    return data;
  },
};

