oddsdk / odd-app-template

A sveltekit web app template for the ODD SDK.
https://odd-template.fission.app
MIT License
29 stars 10 forks source link

Document username behaviour #118

Closed icidasset closed 1 year ago

icidasset commented 1 year ago

The current username strategy allows anyone to register the same username (Discord strategy). This might or might not be expected to some developers.

Original issue on Webnative from @bmann:

A person can register "boris" for the same app / domain (eg webnative-template.fission.app) from any device. This is because the hash function includes the DID, which is unique per device. We need to document and correct the hash function and goals. As I understand it, this looks like "boris" + "example.com" to generate a subdomain like HASHNAME.fission.name. Then for future registrations the HASHNAME is computed locally and DNS subdomain is checked to see if it exists or not.

icidasset commented 1 year ago

Done, see "Usernames" section in readme.