Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 5cb5c20

Browse files
Manuel Proßizzyyhh
authored andcommitted
feat(web): add dynamic route handler for nextAuth, add github as provider
1 parent 2750083 commit 5cb5c20

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import GithubProvider from "next-auth/providers/github";
2+
import NextAuth from "next-auth/next";
3+
4+
export const authOptions = {
5+
providers: [
6+
GithubProvider({
7+
clientId: process.env.GITHUB_ID ?? "",
8+
clientSecret: process.env.GITHUB_SECRET ?? "",
9+
}),
10+
],
11+
};
12+
13+
export const handler = NextAuth(authOptions);
14+
15+
export { handler as GET, handler as POST };

0 commit comments

Comments
 (0)