FreezingMoon / AncientBeast

The Turn Based Strategy Game/eSport. Master your beasts! 🐺
https://AncientBeast.com
GNU Affero General Public License v3.0
1.69k stars 590 forks source link

user log-in via reown [bounty: 444 XTR] #2032

Open DreadKnight opened 2 years ago

DreadKnight commented 2 years ago

Should be able to log into the game using web3 accounts or various crypto wallets. One of the best ways to do so nowadays is https://reown.com

Related issue: #2632

Ejayz commented 2 years ago

In metamask thus it need a username or the username woud be the wallet?

DreadKnight commented 2 years ago

@aspectdev-ph I guess it will just be the wallet, that's fine. Then players could some up some non-verified nickname but eventually could use a nicer identity that's NFT based #1854

Ejayz commented 2 years ago

the login can be done but the NFT thing is not lmao

DreadKnight commented 2 years ago

@aspectdev-ph Should be doable as well eventually. One step at a time though :D

jessiepathfinder commented 2 years ago

How about on-chain username storage? We can have a public usernames registry that binds addresses to usernames.

DreadKnight commented 2 years ago

@jessielesbian That would be cool. Can't code stuff like that myself though. There's another open issue actually #1854 where people could buy and trade nicknames as NFTs, that would be ideal down the road. Kinda like domain names in a way ;)

DreadKnight commented 2 months ago

One of the best ways to provide authentication with popular accounts and crypto wallets in this: https://reown.com

DreadKnight commented 2 months ago

Did a bit of work on this, added a project, verified domain and added some basic info about it. Seems I can nicely add team members to the project on their website, which will be handy for when someone will start poking at this feature.

DreadKnight commented 1 month ago

If reown proves to be expensive or problematic, could even consider wagmi as a migration option -> https://wagmi.sh/react/why though it's meant for React. On the subject, React Native also looks pretty interesting.