26 lines
431 B
TypeScript
26 lines
431 B
TypeScript
declare global {
|
|
namespace Express {
|
|
interface Request {
|
|
auth?: {
|
|
user: {
|
|
id: string;
|
|
email: string;
|
|
name?: string | null;
|
|
};
|
|
session: {
|
|
id: string;
|
|
userId: string;
|
|
};
|
|
};
|
|
deviceAuth?: {
|
|
userId: string;
|
|
deviceId: string;
|
|
role: 'camera' | 'client';
|
|
exp: number;
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|