Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserSessionMetaData<Device, Location>

Represents user session metadata.

Type parameters

  • Device: DeviceBase

    Type of the device.

  • Location

    Type of the location.

Hierarchy

  • BaseUserSessionMetaData<Device, Location>
    • UserSessionMetaData

Properties

accessedAt

accessedAt: number

When session was accessed last time.
If it has RENEWED_SESSION_FLAG value, it means session was renewed and it's about to expire very soon.
After RENEWED_SESSION_FLAG value was assigned, this property should not be updated!

Readonly createdAt

createdAt: number

When session was created.

Optional Readonly device

device: Nullable<DeepReadonly<Device>>

Device from where session was created/accessed.
Can be undefined or null if device is unknown.

Readonly expiresAt

expiresAt: number

When session will expire.

Readonly ip

ip: string

Ip from where session was created/accessed.

Optional Readonly location

location: Nullable<DeepReadonly<Location>>

Location from where session was created/accessed.
Can be undefined or null if location is unknown.