Skip to content

Commit

Permalink
Update route.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanAnsari authored Sep 21, 2024
1 parent c529c14 commit fbb3a37
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import GoogleProvider from "next-auth/providers/google";
import { FirestoreAdapter } from "@next-auth/firebase-adapter";
import { db } from "@/firebaseConfig";

export const authOptions = {
const authOptions = {
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID!,
Expand All @@ -25,7 +25,8 @@ export const authOptions = {
},
};

// Create the NextAuth handler
const handler = NextAuth(authOptions);

// Export the handlers for POST and GET requests
export { handler as POST, handler as GET };
// Export the handler for POST and GET requests
export { handler as GET, handler as POST };

0 comments on commit fbb3a37

Please sign in to comment.