Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

462 B
Raw Blame
import { NextResponse } from "next/server";
import { getSessionContext } from "@/lib/auth/require-session";

export async function handleGetMe(): Promise<Response> {
  const context = await getSessionContext();
  return NextResponse.json({
    authenticated: context !== null,
    deviceId: context?.session.device_id ?? null,
    deviceLabel: context?.device.label ?? null,
    role: context?.role ?? null,
  }, { headers: { "Cache-Control": "no-store" } });
}