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.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
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;
};