sunrise-cms/types/user.types.ts

19 lines
280 B
TypeScript

declare global {
export interface User {
userName: string
userProperties?: UserProperties
}
}
export interface UserProperties {
apiKey: string
canUpdate: boolean
isAdmin: boolean
}
declare module 'express-session' {
interface Session {
user?: User
}
}