> ## Documentation Index
> Fetch the complete documentation index at: https://help.impactu.colav.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Session status

> Checks whether the session is active by reading the JWT from the HttpOnly cookie.

> [!NOTE]
>
> It takes no parameters. The server reads the `access_token_cookie` cookie
> automatically. It returns `401` if there is no active session, if the token
> expired or if the account was deactivated or deleted after logging in.

## Response

**status** `string`

Session status: `sesion_activa`, `sesion_no_iniciada` or `token_expirado`.
A token from a deactivated or nonexistent account is also `token_expirado`.

**msg** `string`

Message describing the status.

**user** `object`

Data of the authenticated user. Only present when `status` is `sesion_activa`.

**properties**

**\_id** `string`

Identifier of the user's institution.

**email** `string`

User's email address.

**institution** `string`

Name of the institution.

**role** `string`

User's role.

```json 200 theme={null}
{
  "status": "sesion_activa",
  "msg": "Sesión activa",
  "user": {
    "_id": "example-institution-id",
    "email": "usuario@example.com",
    "institution": "Universidad Ejemplo",
    "role": "staff"
  }
}
```

```json 401 — no session theme={null}
{"msg": "Sesión no iniciada", "status": "sesion_no_iniciada"}
```

```json 401 — expired token theme={null}
{ "status": "token_expirado", "msg": "Token expirado o inválido" }
```

```json 401 — deactivated account theme={null}
{ "status": "token_expirado", "msg": "Token revocado o inválido" }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.