summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/routes/auth/status.ts
blob: ed522d7404f26c5ec60c647297de812c3b8bf0b4 (plain)
1
2
3
4
5
6
7
import { APIEvent } from "@solidjs/start"
import { useAuthSession } from "~/context/auth"

export async function GET(_input: APIEvent) {
  const session = await useAuthSession()
  return Response.json(session.data)
}