All checks were successful
Build and Publish / build-release (push) Successful in 2m11s
24 lines
543 B
TypeScript
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']
|
|
}
|
|
}
|