Skip to content

Commit

Permalink
Move next-auth to app router
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Nov 9, 2024
1 parent 7a62332 commit 05e7c0b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import NextAuth, { NextAuthOptions } from 'next-auth';
import GithubProvider from 'next-auth/providers/github';

export const authOptions: NextAuthOptions = {
const authOptions: NextAuthOptions = {
providers: [
GithubProvider({
clientId: process.env.GITHUB_ID as string,
clientSecret: process.env.GITHUB_SECRET as string
})
]
};
export default NextAuth(authOptions);

const handler = NextAuth(authOptions);

export { handler as GET, handler as POST };

0 comments on commit 05e7c0b

Please sign in to comment.