Last active
July 11, 2024 08:39
-
-
Save rahulmore01/8ec03d552d61893c0282cacd42d40538 to your computer and use it in GitHub Desktop.
next auth route file to setup next auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NextAuth from "next-auth/next"; | |
import GoogleProvider from "next-auth/providers/google"; | |
const handler = NextAuth({ | |
providers: [ | |
GoogleProvider({ | |
clientId: process.env.GOOGLE_ID, | |
clientSecret: process.env.GOOGLE_SECRET, | |
}), | |
], | |
}); | |
export { handler as GET, handler as POST }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
next auth 1st step