    ):
        state_in_b64: str = form_post_info[&#34;state&#34;]
        state = b64decode(state_in_b64).decode(&#34;utf-8&#34;)
        state_obj = json.loads(state)
        redirect_uri: str = state_obj[&#34;frontendRedirectURI&#34;]

        url_obj = urlparse(redirect_uri)
        qparams = parse_qs(url_obj.query)
        for k, v in form_post_info.items():
            qparams[k] = [v]

        redirect_uri = url_obj._replace(query=urlencode(qparams, doseq=True)).geturl()

        api_options.response