MonoCloud Authentication SDK
    Preparing search index...
    • Encrypts a MonoCloud session object with a secret and optional time-to-live (TTL).

      Parameters

      • session: MonoCloudSession

        The session object to encrypt.

      • secret: string

        The secret used for encryption.

      • Optionalttl: number

        Optional time-to-live in seconds, after which the session expires.

      Returns Promise<string>

      Encrypted session string.