Function parseBase64Json

Parses a Base64-encoded JSON string to a JavaScript object.

  • Type Parameters

    • T = Record<string, any>

      The type of the parsed JavaScript object. Defaults to Record<string, any>.

    Parameters

    • state: string

      The Base64-encoded JSON string to parse.

    Returns null | T

    • The parsed JavaScript object, or null if parsing fails.