Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UserSessionMetaData<Device, Location>

Represents user session metadata that is stored along the refresh token.

Type parameters

  • Device: DeviceBase

    Type of the device.

  • Location

    Type of the location.

Hierarchy

Properties

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.