Spaces:
Runtime error
Runtime error
Download next/src/pages/api/auth/[...nextauth].ts from dia-gov/AgentGPT-Web-GUI: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/pages/api/auth/%5B...nextauth%5D.ts
- Command line
-
hf download 'hf://spaces/dia-gov/AgentGPT-Web-GUI/next/src/pages/api/auth/[...nextauth].ts'
-
curl -L -o '[...nextauth].ts' https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/pages/api/auth/%5B...nextauth%5D.ts
354 Bytes
| import type { NextApiRequest, NextApiResponse } from "next"; | |
| import NextAuth from "next-auth"; | |
| import { authOptions } from "../../../server/auth"; | |
| const auth = (req: NextApiRequest, res: NextApiResponse) => { | |
| // eslint-disable-next-line @typescript-eslint/no-unsafe-return | |
| return NextAuth(req, res, authOptions(req, res)); | |
| }; | |
| export default auth; | |