Spaces:
Runtime error
Runtime error
Download next/src/server/auth/auth.ts from dia-gov/AgentGPT-Web-GUI: direct link, hf CLI and curl.
- Browser
- Download file 938 Bytes
-
https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/server/auth/auth.ts
- Command line
-
hf download hf://spaces/dia-gov/AgentGPT-Web-GUI/next/src/server/auth/auth.ts
-
curl -L -o auth.ts https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/server/auth/auth.ts
938 Bytes
| import type { NextAuthOptions } from "next-auth"; | |
| import DiscordProvider from "next-auth/providers/discord"; | |
| import GithubProvider from "next-auth/providers/github"; | |
| import GoogleProvider from "next-auth/providers/google"; | |
| import { serverEnv } from "../../env/schema.mjs"; | |
| export const authOptions: NextAuthOptions = { | |
| providers: [ | |
| GoogleProvider({ | |
| clientId: serverEnv.GOOGLE_CLIENT_ID ?? "", | |
| clientSecret: serverEnv.GOOGLE_CLIENT_SECRET ?? "", | |
| allowDangerousEmailAccountLinking: true, | |
| }), | |
| GithubProvider({ | |
| clientId: serverEnv.GITHUB_CLIENT_ID ?? "", | |
| clientSecret: serverEnv.GITHUB_CLIENT_SECRET ?? "", | |
| allowDangerousEmailAccountLinking: true, | |
| }), | |
| DiscordProvider({ | |
| clientId: serverEnv.DISCORD_CLIENT_ID ?? "", | |
| clientSecret: serverEnv.DISCORD_CLIENT_SECRET ?? "", | |
| allowDangerousEmailAccountLinking: true, | |
| }), | |
| ], | |
| pages: { | |
| signIn: "/signin", | |
| } | |
| }; | |