Encrypts a MonoCloud session object with a secret and optional time-to-live (TTL).
| Parameter | Type | Description |
|---|---|---|
session | MonoCloudSession | The session object to encrypt. |
secret | string | The secret used for encryption. |
ttl? | number | Optional time-to-live in seconds, after which the session expires. |
Promise<string>
Encrypted session string.