-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a62332
commit 05e7c0b
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
.../site/src/pages/api/auth/[...nextauth].ts → ...e/src/app/api/auth/[...nextauth]/route.ts
This file contains 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
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 }; |