Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Jan 28, 2024
1 parent aef8ff9 commit ea7569e
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 74 deletions.
21 changes: 0 additions & 21 deletions examples/next-auth-app-router/lib/prisma.ts

This file was deleted.

6 changes: 0 additions & 6 deletions examples/next-auth-app-router/lib/utils.ts

This file was deleted.

10 changes: 10 additions & 0 deletions examples/next-auth-app-router/next-auth.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import 'next-auth/jwt';

// Read more at: https://next-auth.js.org/getting-started/typescript#module-augmentation

declare module 'next-auth/jwt' {
interface JWT {
/** The user's role. */
userRole?: 'admin';
}
}
6 changes: 3 additions & 3 deletions examples/next-auth-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"framer-motion": "^11",
"next": "^14.1.0",
"next-auth": "^4.24.5",
"nodemailer": "^6",
"nodemailer": "^6.9.8",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/node": "^20.11.9",
"@types/react": "^18.2.48",
"typescript": "^5"
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion examples/next-auth-app-router/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
}
]
},
"exclude": ["node_modules"]
"exclude": ["node_modules", ".next"]
}
4 changes: 2 additions & 2 deletions examples/next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/node": "^20.11.9",
"@types/react": "^18.2.48",
"typescript": "^5"
"typescript": "^5.3.3"
}
}
78 changes: 37 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea7569e

Please sign in to comment.