I’ve been having a look at the Beta Docs and I found the Claim Codes and Join Codes that would have the following format:
email@example.com/R4nd0ML3tt3RSAndNumb3R5
I was just wondering if a company that sells physical robots with Husarnet eventually installed out of the box would be willing to have their husarnet-admin@robotics-company.com email listed when someone lists the processes with ps faux | grep husarnet, for example.
What if the manager changes the email address later on? Would the previous codes keep working?
Maybe using a unique UUID v4 or v7 on the Claim/Join Code (instead of email) associated with each user would work for any user, regardless of how many times the email is changed.
Of course, this is none of my business, but it is something that just came to mind, and I thought it could be useful.
The reason we introduced email prefix in the Dashboard is that it helps tell different codes apart in personal notes/scripts/setups - by just looking at the code we can see what account will the device be claimed to (if not claimed before) or who is the owner the group when joining. I think it’s very useful for anyone who accidentally claimed the device to wrong account in the past.
Therefore, regarding your question about email change - if an email associated with the account is changed, all associated joincodes stay the same, as the email is not really a part of them. It’s just a prefix displayed in user-facing input boxes, which can be safely omitted if you don’t want to use it.