Skip to content

Commit

Permalink
fix: correct next auth function export
Browse files Browse the repository at this point in the history
  • Loading branch information
shunkakinoki committed Aug 17, 2021
1 parent 68fe8c9 commit d62baba
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ import Providers from "next-auth/providers";

const prisma = new PrismaClient();

export const Auth = () => {
return NextAuth({
providers: [
Providers.GitHub({
clientId: process.env.GITHUB_CLIENT_ID,
clientSecret: process.env.GITHUB_CLIENT_SECRET,
}),
],
adapter: PrismaAdapter(prisma),
});
};

export const Auth = NextAuth({
providers: [
Providers.GitHub({
clientId: process.env.GITHUB_CLIENT_ID,
clientSecret: process.env.GITHUB_CLIENT_SECRET,
}),
],
adapter: PrismaAdapter(prisma),
});
export default Auth;

2 comments on commit d62baba

@vercel
Copy link

@vercel vercel bot commented on d62baba Aug 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d62baba Aug 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.