Authentication / Tokensbeginner

Session Object JSON Example

A session payload that joins identity, device, and expiry state in one object.

Real-world use case: Use this for session APIs, auth dashboards, and device management screens.
1{
2 "sessionId": "sess_1109",
3 "userId": "usr_8f41",
4 "device": {
5 "type": "desktop",
6 "browser": "Chrome 135",
7 "os": "Windows 11"
8 },
9 "startedAt": "2026-03-12T09:40:00Z",
10 "expiresAt": "2026-03-12T17:40:00Z",
11 "current": true
12}

Where this shape shows up in production

Account security
Session management
Admin auth audits

Related examples