The primary affiliation for each author should be the institution where the majority of their work was done. If an author has subsequently moved, the current address may also be stated. Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
https://www.nature.com/nature-research/editorial-policies/authorship#author-identification