import type { MeResponse } from "@/lib/api";

let cachedUser: MeResponse | null = null;

export function getCachedUser(): MeResponse | null {
  return cachedUser;
}

export function setCachedUser(user: MeResponse | null): void {
  cachedUser = user;
}

export function clearAuthCache(): void {
  cachedUser = null;
}
