mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 02:36:52 +00:00
fix auth
This commit is contained in:
7
packages/console/app/src/routes/auth/status.ts
Normal file
7
packages/console/app/src/routes/auth/status.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { APIEvent } from "@solidjs/start"
|
||||
import { useAuthSession } from "~/context/auth.session"
|
||||
|
||||
export async function GET(input: APIEvent) {
|
||||
const session = await useAuthSession()
|
||||
return Response.json(session.data)
|
||||
}
|
||||
Reference in New Issue
Block a user