fix build env

This commit is contained in:
wass08
2026-02-11 16:40:24 +09:00
parent d37a084715
commit 13bfa41489
2 changed files with 39 additions and 3 deletions
+18 -2
View File
@@ -104,6 +104,22 @@ export const auth = new Proxy({} as ReturnType<typeof betterAuth>, {
/**
* Type helpers for better-auth session
* These are generic types that should match Better Auth's session structure
*/
export type Session = typeof auth.$Infer.Session.session
export type User = typeof auth.$Infer.Session.user
export type Session = {
id: string
userId: string
activePropertyId?: string | null
expiresAt: Date
createdAt: Date
updatedAt: Date
}
export type User = {
id: string
email: string
emailVerified: boolean
name: string
createdAt: Date
updatedAt: Date
}