amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

[Bug] Authentication: Username alias issue #1185

Open mangledbottles opened 2 years ago

mangledbottles commented 2 years ago

Hello, I have found a bug while implementing Gun authentication.

I have isolated this issue to the symbol "-". When this is used, the alias lookup does not work. UUID v4 works when this symbol is removed with username = uuidv4().split("-").join("");

amark commented 2 years ago

Oh boy... I'm scared this will be ugly. Thanks for the report!

Anyone willing to tackle it?