Download packages/console/app/src/routes/auth/status.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/app/src/routes/auth/status.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/console/app/src/routes/auth/status.ts
-
curl -L -o status.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/app/src/routes/auth/status.ts
217 Bytes
| 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) | |
| } | |