import { api } from "./client";

export interface Me {
  id: number;
  name: string;
  email?: string | null;
  permissions: string[];
}

export async function getMe(): Promise<Me> {
  return api.get("me").json<Me>();
}
