Please help me understand how Gun manages users in a sometimes-disconnected P2P network.
Let's say there are two Gun instances, I1 and I2, that are configured to be peers, and also let's assume user "doe" did not exist beforehand on either I1 or I2. Suppose user "doe" is created on both instances while I1 and I2 are not connected. Both attempts should succeed. For the sake of argument, let's call the "doe" user on I1 doe1, and that on I2, doe2.
Now, what happens when I1 and I2 are connected? Are doe1 and doe2 considered to be the same user or not? Will it depend on the passwords given at the time of user registration?
My understanding is that they are, as long as the passwords given at user registration are the same. This is reasonable. But my big question is, what if they were given different passwords?
I would think in that case, doe1 and doe2 will be considered different users... but then what? How will I1 and I2 treat this situation? Will I1 simply reject doe2 and vice versa? Or is this left to the implementation?
Your advice will be much appreciated. Thank you.
Yasuro