chat-ui / src /lib /types /Session.ts
nsarrazin's picture
nsarrazin HF staff
Session management improvements: Multi sessions, renew on login/logout (#603)
e4a770a unverified
raw history blame
No virus
282 Bytes
import type { ObjectId } from "bson";
import type { Timestamps } from "./Timestamps";
import type { User } from "./User";
export interface Session extends Timestamps {
_id: ObjectId;
sessionId: string;
userId: User["_id"];
userAgent?: string;
ip?: string;
expiresAt: Date;
}