Session Object
Description
Represents an authenticated user session with JWT token and user information.
Declaration
type Session {
_id: ID!
configRef: ID
type: String
user: Admin!
jwt: String!
expires: Date
createdAt: Date
origin: String
adminDomains: [SessionAdminDomain!]!
shopName: String
admins: [SessionAdmin!]
deviceName: String
deviceId: String
mfa: Boolean
ip: String
}
Fields
| Name | Type | Description |
|---|---|---|
_id | ID! | Internal database identifier. |
configRef | ID | Configuration reference for the shop. |
type | String | Session type (e.g., "Session", "DeviceRegistration"). |
user | Admin! | Admin user associated with this session. |
jwt | String! | JSON Web Token for authentication. |
expires | Date | Session expiration date. |
createdAt | Date | Date when the session was created. |
origin | String | Origin of the session (e.g., "eshop", "backoffice", "superAdmin", "api"). |
adminDomains | [SessionAdminDomain!]! | List of admin domains accessible in this session. |
shopName | String | Shop name for the configuration. |
admins | [SessionAdmin!] | List of admin users (for multi-admin sessions). |
deviceName | String | Device name for device registration sessions. |
deviceId | String | Device identifier for device registration sessions. |
mfa | Boolean | Whether multi-factor authentication is enabled for this session. |
ip | String | IP address from which the session was created. |