Sign in

decryptSession

decryptSession(encryptedSession: string, secret: string): Promise<MonoCloudSession>

Decrypts an encrypted MonoCloud session.

Parameters

ParameterTypeDescription
encryptedSessionstringThe encrypted session string to decrypt.
secretstringThe secret used for decryption.

Returns

Promise<MonoCloudSession>

Session object on success.

Throws

If decryption fails or the session has expired.

© 2024 MonoCloud. All rights reserved.