# ovok_sdk.resources.auth_sessions

Canonical page: https://docs.ovok.com/python-sdk/reference/resources/auth_sessions

The `ovok.auth.sessions` namespace: the account's server-side sessions.

## AuthSessionsResource [#authsessionsresource]

```python
AuthSessionsResource(http: HttpClient, session: UserSession | None)
```

The account's sessions on the server.

Access it as `ovok.auth.sessions`.

### list() [#list]

```python
list() -> list[dict[str, Any]]
```

List the account's active sessions.

**Returns**

- `list[dict[str, Any]]`: One entry per session, as the API returns them.

### revoke() [#revoke]

```python
revoke(option: str) -> None
```

Revoke one or more sessions.

Revoking "current" also ends the session stored by this client.

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `option` | `str` |  | A session ID, or "current", "other" or "all". |
