Skip to content

Commit 1858cee

Browse files
committed
feat: add next-auth
1 parent 81794a3 commit 1858cee

File tree

3 files changed

+134
-0
lines changed

3 files changed

+134
-0
lines changed

package-lock.json

Lines changed: 120 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslint-config-next": "13.4.9",
2222
"lucide-react": "^0.259.0",
2323
"next": "13.4.9",
24+
"next-auth": "^4.22.1",
2425
"postcss": "8.4.25",
2526
"react": "18.2.0",
2627
"react-dom": "18.2.0",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import NextAuth from "next-auth";
2+
import GithubProvider from "next-auth/providers/github";
3+
4+
const handler = NextAuth({
5+
providers: [
6+
GithubProvider({
7+
clientId: "setup-with-community",
8+
clientSecret: "setup-with-community",
9+
}),
10+
],
11+
});
12+
13+
export { handler as GET, handler as POST };

0 commit comments

Comments
 (0)