Skip to content

Commit 96b6253

Browse files
committed
Merge branch 'main' of github.com:tlaukkanen/aivomind
2 parents f938213 + db11f96 commit 96b6253

File tree

3 files changed

+22
-28
lines changed

3 files changed

+22
-28
lines changed

package-lock.json

Lines changed: 9 additions & 27 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lodash": "^4.17.21",
2727
"nanoid": "^5.0.9",
2828
"next": "15.1.5",
29-
"next-auth": "^4.24.11",
29+
"next-auth": "^4.24.13",
3030
"react": "^19.0.0",
3131
"react-dom": "^19.0.0",
3232
"react-icons": "^5.4.0",

src/pages/api/auth/[...nextauth].ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ const hostName = new URL(process.env.NEXTAUTH_URL || "http://localhost:3000")
1010
.hostname;
1111

1212
export const authOptions: NextAuthOptions = {
13+
// Custom logger for better troubleshooting
14+
logger: {
15+
error(code, metadata) {
16+
logger.error(`NextAuth error: ${code}`, metadata);
17+
},
18+
warn(code) {
19+
logger.warn(`NextAuth warning: ${code}`);
20+
},
21+
debug(code, metadata) {
22+
logger.debug(`NextAuth debug: ${code}`, metadata);
23+
},
24+
},
1325
// Configure one or more authentication providers
1426
providers: [
1527
GithubProvider({

0 commit comments

Comments
 (0)