Commit 3ea5b32
fix: replace 'as any' with proper Db type annotation
Replaced the type assertion 'as any' with a proper 'as Db' type
annotation for the MongoDB adapter in lib/auth.ts. This addresses
the code review feedback to ensure type safety.
Changes:
- Import Db type from mongodb package
- Use 'as Db' instead of 'as any' for mongoClient.db() call
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 42c7ad8 commit 3ea5b32
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments