docs: def parse_cookie(name, sign_key, kaka, enc_key=None, sign_alg='SHA256'):
      """Parses and verifies a cookie value
  
      Parses a cookie created by `make_cookie` and verifies
      it has not been tampered with.
  
      You need to provide the same `sign_key` and `enc_key`
      used when creating the cookie, otherwise the verification
      fails. See `make_cookie` for details about the verification.
  
      :param sign_key: A signing key used to create the signature
      :type sign_key: A :py:class:`cryptojwt.jwk.hmac.SYMKey` instance
      :param kaka: The cookie
      :param enc_key: The encryption key used.
      :type enc_key: A :py:class:`cryptojwt.jwk.hmac.SYMKey` instance or None
      :raises InvalidCookieSign: When verification fails.
      :return: A tuple consisting of (payload, timestamp) or None if parsing fails
      """
      if not kaka:
          return None
  
      parts = cookie_parts(name, kaka)
  
      return ver_dec_content(parts, sign_key, enc_key, sign_alg)