refactor: authController, add session types

This commit is contained in:
wancat committed 2024-02-22 20:35:19 +08:00
1 parent 885f1c5b27
commit 59590639ee
3 files changed
+120 -92

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
/* eslint-disable no-undef */
/* eslint-disable no-unused-vars */
import 'express-session'
declare module 'express-session' {
interface SessionData {
newUser?: Express.PendingUser // Adjust the type according to your newUser structure
}
}