hive-keychain/hive-keychain-extension

Create a login form

mojosef opened this issue · 2 comments

Hi Everyone

This is more of a question than an issue. I'm trying to figure out a way to create a login form using hive keychain, similar to what is on here https://hive-engine.com/?p=sign_in. Can anyone point me in the right direction?

Thanks in anticipation

You can use requestSignBuffer and then check that the signature is correct and belongs to the user.

It would be really nice to have the username optional and have the user enter/select the account themselves. As I would prefer not to have to add an input field for the username.

Similar how MetaMask is doing it:

1.) Click on Button => Opens MetaMask
2.) Select Account
https://user-images.githubusercontent.com/31614097/100878057-f5a0b700-34a9-11eb-9bae-a918c57fe624.png
3.) Select Permissions
https://user-images.githubusercontent.com/31614097/100878125-0a7d4a80-34aa-11eb-8e64-e48b971704b1.png
4.) Signing
https://user-images.githubusercontent.com/31614097/100878181-1cf78400-34aa-11eb-89bb-b3383155f7b6.png