ponse, SignInUpNotAllowed):
            return signinup_response

        if not isinstance(signinup_response, SignInUpOkResult):
            reason_dict = error_code_map[&#34;LINKING_TO_SESSION_USER_FAILED&#34;]
            assert isinstance(reason_dict, Dict)
            reason = reason_dict[signinup_response.reason]
            return SignInUpNotAllowed(reason=reason)

        post_auth_checks_result = await post_auth_checks(
            factor_id=&#34;thirdparty&#34;,
            is_sign_up=is_sign_up,
