 valid_state_consumed:
            return self.failure_handler(
                FailureArgs(
                    request=request,
                    reason=&#34;invalid_state&#34;,
                    suggested_status_code=401,
                    settings=self.settings,
                    default=self.default_callback_options,
                )
            )

    # run installation
    code = request.query.get(&#34;code&#34;, [None])[0]
    if code is None:
        return self.failure_handler(
          