Creates a new Session instance.
The ID of the Handle that authorized this session.
An array of permission scopes granted in this session (e.g., ['read', 'write']).
Unix timestamp (in milliseconds) when this session expires.
The cryptographic token string (e.g., JWT or custom signature format).
ReadonlyhandleThe ID of the Handle that authorized this session.
ReadonlyscopesAn array of permission scopes granted in this session (e.g., ['read', 'write']).
ReadonlyexpiresUnix timestamp (in milliseconds) when this session expires.
ReadonlytokenThe cryptographic token string (e.g., JWT or custom signature format).
Represents a stateless, cryptographically verifiable session token.
Instead of storing session state on the server, the Session object encapsulates all necessary authorization data (handle ID, scopes, expiration) into a self-contained structure that can be verified using the Handle's public key.