Skip to main content

Session Object

Description

Represents an authenticated user session.

Declaration

type Session {
_id: ID!
jwt: String!
expires: Date
user: User!
}

Fields

NameTypeDescription
_idID!Internal database identifier.
jwtString!JSON Web Token for authentication.
expiresDateSession expiration date.
userUser!User associated with this session.