• Parse the given cookie string into an object of key - values.

    Parameters

    • Optionalcookie: string

      The cookie string

    • Optional_decode: (s: string) => string

      Optional decode function

    Returns Record<string, string | boolean> & { session: string } | null