Files
policy-ui/types/auth.d.ts
HaimKortovich 6424dc4e85
All checks were successful
Build and Publish / build-release (push) Successful in 2m11s
minimize cookie and simplify roles
2026-05-15 13:06:16 -05:00

24 lines
543 B
TypeScript

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