Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

364 B
Raw Blame
import { getCurrentUser } from "@/utils/user.utils";

// Not a "use server" module: shared across the action directories, so it must
// stay importable without becoming a callable server-action endpoint.

export const requireUser = async () => {
  const user = await getCurrentUser();
  if (!user) {
    throw new Error("Not authenticated");
  }
  return user;
};