Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 5.67 KB

session.md

File metadata and controls

30 lines (25 loc) · 5.67 KB

Session

Example Usage

import { Session } from "@steamsets/client-ts/models/components";

let value: Session = {
  createdAt: new Date("2023-01-01T00:00:00Z"),
  expiresAt: new Date("2023-01-01T00:00:00Z"),
  ip: "127.0.0.1",
  lastSeen: new Date("2023-01-01T00:00:00Z"),
  level: 1,
  sessionId: "123456",
  userAgent:
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
};

Fields

Field Type Required Description Example
createdAt Date ✔️ The time the session was created 2023-01-01T00:00:00Z
expiresAt Date ✔️ The time the session expires 2023-01-01T00:00:00Z
ip string ✔️ The ip of the session 127.0.0.1
lastSeen Date ✔️ The time the session was last seen 2023-01-01T00:00:00Z
level number ✔️ The level of the logged in account on steam 1
sessionId string ✔️ The session id 123456
userAgent string ✔️ The user agent of the session Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36