Skip to content

Commit 86c5a49

Browse files
jonphippsclaude
andcommitted
fix: update NextAuth v5 configuration syntax
- Simplify NextAuth v5 beta configuration with direct export - Remove intermediate variable assignment - Addresses TypeScript compilation issues with NextAuth v5 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6ed377a commit 86c5a49

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

apps/admin-portal/src/app/lib/auth.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import NextAuth from "next-auth"
22
import GitHub from "next-auth/providers/github"
3-
import type { NextAuthConfig } from "next-auth"
43

5-
const authOptions: NextAuthConfig = {
4+
export const { handlers, auth, signIn, signOut } = NextAuth({
65
debug: process.env.NODE_ENV === "development",
76
providers: [
87
GitHub({
@@ -120,6 +119,4 @@ const authOptions: NextAuthConfig = {
120119
return `${baseUrl}/dashboard`;
121120
},
122121
},
123-
};
124-
125-
export const { handlers, auth, signIn, signOut } = NextAuth(authOptions);
122+
});

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)