Get Hedhog updates in your inbox
New releases, fresh recipes, and breaking changes — no spam.
Core Submodule
session
Manages active sessions and session revocation controls.
Source path: libraries/core/src/session
Module file: session.module.ts
Introduction
This page documents the session submodule as part of the Core package. Use it as a quick technical reference for implementation scope, exposed APIs and MCP integration points.
HTTP Endpoints
5 endpoints
List currently active sessions for the authenticated user.
- Query
- page, pageSize
List all sessions (active and expired) for the authenticated user.
- Query
- page, pageSize
Revoke all sessions for the current user, including the current one.
Revoke all sessions for the current user except the active one.
Revoke a specific session by ID.
- Params
- sessionId (int)
MCP Tools
Named tools callable by AI models via the Model Context Protocol (MCP).
core.sessions.activeList currently active sessions for the authenticated user
core.sessions.allList all sessions (active and expired) for the authenticated user
core.sessions.revokeRevoke a specific session by ID
core.sessions.revoke-allRevoke all sessions for the current user including the current one
core.sessions.revoke-all-otherRevoke all sessions for the current user except the active one