

Well, that makes a huge difference to the meaning of the question.
I don’t know, but maybe the login is held in a dotfile such as ~/.dropbox or maybe in ~/.config/dropbox or similar, and just backing up that (not to Dropbox!) would be enough to restore being logged in on a different system.




If my suggestion works, that won’t matter, it will still be logged in on the new install.