@withpotter/device-session — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

DeviceSession — table device_sessions

FieldType
idstring
accountIdstring
accountAccount
namestring
kindDeviceKind
locationstring | null
userAgentstring | null
ipAddressstring | null
isCurrent?boolean
lastSeenAtDate
revokedAtDate | null
createdAtDate

Repositories

Data-access classes wrapping the entities.

DeviceSessionRepository

create · findActiveByAccount · findById · updateLastSeen · revoke · revokeAllExcept

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.