minimize cookie and simplify roles
All checks were successful
Build and Publish / build-release (push) Successful in 2m11s
All checks were successful
Build and Publish / build-release (push) Successful in 2m11s
This commit is contained in:
8
types/auth.d.ts
vendored
8
types/auth.d.ts
vendored
@@ -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']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user