Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

Back to Core modulesWired in CoreModule

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.active

    List currently active sessions for the authenticated user

  • core.sessions.all

    List all sessions (active and expired) for the authenticated user

  • core.sessions.revoke

    Revoke a specific session by ID

  • core.sessions.revoke-all

    Revoke all sessions for the current user including the current one

  • core.sessions.revoke-all-other

    Revoke all sessions for the current user except the active one