minimize cookie and simplify roles
All checks were successful
Build and Publish / build-release (push) Successful in 2m11s

This commit is contained in:
2026-05-15 13:06:16 -05:00
parent 17710ab47a
commit 6424dc4e85
6 changed files with 38 additions and 47 deletions

8
types/auth.d.ts vendored
View File

@@ -3,21 +3,21 @@ import type { DefaultSession } from '@auth/core/types'
declare module '@auth/core/types' {
interface Session {
user: {
roles?: string[]
roles?: Record<string, Record<string, Record<string, string>>>
accessToken?: string
} & DefaultSession['user']
}
interface User {
roles?: string[]
roles?: Record<string, Record<string, Record<string, string>>>
}
}
declare module '#auth' {
interface Session {
user: {
roles?: string[]
roles?: Record<string, Record<string, Record<string, string>>>
accessToken?: string
} & DefaultSession['user']
}
}
}