separate user from token

This commit is contained in:
Alex Holliday committed 2026-01-16 19:14:03 +00:00
1 parent 62ea7b0e5b
commit 64dc381e0f
10 files changed
+148 -111

No files matched your search

+1
View File
@@ -3,3 +3,4 @@ export * from "@/types/monitor.js";
export * from "@/types/monitorStats.js";
export * from "@/types/statusPage.js";
export * from "@/types/network.js";
export * from "@/types/user.js";
+24
View File
@@ -0,0 +1,24 @@
export const UserRoles = ["user", "admin", "superadmin", "demo"] as const;
export type UserRole = (typeof UserRoles)[number];
export interface UserProfileImage {
data?: Buffer;
contentType?: string;
}
export interface User {
id: string;
firstName: string;
lastName: string;
email: string;
password: string;
avatarImage?: string;
profileImage?: UserProfileImage;
isActive: boolean;
isVerified: boolean;
role: UserRole[];
teamId: string;
checkTTL?: number;
createdAt: string;
updatedAt: string;
}