MonoCloud Authentication SDK
    Preparing search index...
    decryptAuthState: <T extends AuthState>(
        encryptedAuthState: string,
        secret: string,
    ) => Promise<T>

    Decrypts an encrypted AuthState.

    Type Declaration

      • <T extends AuthState>(encryptedAuthState: string, secret: string): Promise<T>
      • Type Parameters

        Parameters

        • encryptedAuthState: string

          The encrypted auth state string to decrypt.

        • secret: string

          The secret used for decryption.

        Returns Promise<T>

        State object on success

    If decryption fails or the auth state has expired