The original Firefox sync worked like this (with a unique code and pairing instead of an explicit account) (this is so on the nose I suspect you may know this).
This blog post goes over some of that history: https://blog.mozilla.org/services/2014/04/30/firefox-syncs-n...