Files
app/ts_interfaces/data/loint-reception.loginsession.ts
T

32 lines
656 B
TypeScript
Raw Normal View History

2024-09-29 13:56:38 +02:00
export interface ILoginSession {
id: string;
data: {
userId: string;
validUntil: number;
invalidated: boolean;
refreshToken: string;
/**
* a device id that can be used to share the login session
* in different contexts on the same device
*/
deviceId: string;
/**
* Device metadata for session display
*/
deviceInfo?: {
deviceName: string;
browser: string;
os: string;
ip: string;
};
/**
* When this session was created
*/
createdAt?: number;
/**
* Last time this session was active (e.g., refreshed)
*/
lastActive?: number;
2024-09-29 13:56:38 +02:00
};
}