Function getCookieValue

  • Helper to get and decode the cookie value using decodeURIComponent, this is for historical backward compatibility where the document.cookie value was decoded before parsing.

    Parameters

    • cookieMgr: ICookieMgr

      The cookie manager to use

    • name: string

      The name of the cookie to get

    • decode: boolean = true

      A flag to indicate whether the cookie value should be decoded

    Returns string

    The decoded cookie value (if available) otherwise an empty string.

Generated using TypeDoc