• Checks if a value is the encrypted sentinel, indicating a protected value that was not disclosed to the client.

    Parameters

    • value: string

      The value to check

    Returns boolean

    True if the value equals the encrypted sentinel, false otherwise

    Example

    import { IsEncryptedSentinel, ENCRYPTED_SENTINEL } from '@memberjunction/global';

    console.log(IsEncryptedSentinel('[!ENCRYPTED$]')); // true
    console.log(IsEncryptedSentinel('somevalue')); // false
    console.log(IsEncryptedSentinel(null)); // false