You just be logged onto your W10 computer with a microsoft account, which then links that license to that account. When you install W10 again and log on with that account it will reauthenticate based on your Microsoft account.
https://support.microsoft.com/en-us/help/20530/windows-10-reactivating-after-hardware-change