amark on master
ReactNative/Expo fix for SEA (#… (compare)
I have been thinking about the idea of automatically creating an account on first visit. I think it is something integral to DAPPs, but at the same time, I think slightly more credentials might be necessary for certain projects. I am thinking in particularly about email authentication. Would it be possible to use SEA to grab user emails and enforce account verification by email? I've taken a first glance at SEA but my biggest concern seems that it would be difficult to add this.
One other concern I have is that it's mentioned in the gundb docs that "It is unsafe to use usernames as links". Why? If a user can already see another username, why can't we have the username appear as example.com/username? Is this sort of option pre-built into SEA? If I can have email authentication, then I would feel more comfortable with allowing accounts to have the advantage of having example.com/username.
Just trying to get a good idea of how things work.
Thank you for taking the time to read this!
Clients that break these limits in requests will see their request fail with a 400 Bad Request response.
await SEA.pair()to create new! Then you can
SEA.secret(share their email with some admin account you run. Usernames are not secure cause there is no centralized enforcement of who owns the username, this is p2p/offline/local-first remember!
.put(instead. If you want like the "last chat message in chat history" tho where you still need to use
.set(then you could always have a special
.get('chat').get('last').put(gunRefToLastSentMsg)property you index to and read from.