Spaces:
Runtime error
Runtime error
File size: 938 Bytes
cd6f98e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 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",
}
};
|