4;)

    # V1 and V2 are functionally identical, plus all legacy tokens should be V2 now.
    # So we can assume these defaults:
    version = 2
    kid = None
    parsed_header = None
    # V2 or older tokens didn&#39;t save the key id
    header, payload, signature = splitted_input
    # checking the header
    if header not in _allowed_headers:
        parsed_header = loads(utf_base64decode(header, True))
        header_version = parsed_header.get(&#34;version&#34;, str(LATEST_TOKEN_VERSION))

        tr