diff --git a/pages/api/auth/[...nextauth].js b/pages/api/auth/[...nextauth].js index 6ae3be64..cd66f811 100644 --- a/pages/api/auth/[...nextauth].js +++ b/pages/api/auth/[...nextauth].js @@ -5,6 +5,7 @@ import clientPromise from "../../../lib/mongodbAdapter"; // Providers import GitHubProvider from "next-auth/providers/github"; import DiscordProvider from "next-auth/providers/discord"; +import GoogleProvider from "next-auth/providers/google"; export const authOptions = { adapter: MongoDBAdapter(clientPromise), @@ -17,6 +18,10 @@ export const authOptions = { clientId: process.env.DISCORD_CLIENT_ID, clientSecret: process.env.DISCORD_CLIENT_SECRET, }), + GoogleProvider({ + clientId: process.env.GOOGLE_CLIENT_ID, + clientSecret: process.env.GOOGLE_CLIENT_SECRET, + }), ], };