bytesbay / web3-token

Web3 Token is a new way to authenticate users in a hybrid dApps using signed messages. Implementation of EIP-4361.
380 stars 50 forks source link

Signature body - prepend a message? #10

Closed JohnRSim closed 2 years ago

JohnRSim commented 3 years ago

Is it possible to prepend a custom message similar to OpenSea? image

I know you can append a message but it would be nice to add a custom message first informing the user what they are signing..

john-- commented 3 years ago

Completely agree. The OpenSea like informational message is very educational to the user. This would be a great addition :)

JohnRSim commented 3 years ago

At the moment I'm appending the key "Welcome to": " opensea copy text with nonce and wallet address generated"

It's ok but the expiry and token info is prepended above.

john-- commented 3 years ago

Ah, yeah. I'm actually doing something similar. Even if just being able to re-order the JSON properties was possible, I think it would be useful.

john-- commented 3 years ago

@bytesbay any thoughts? :)

bytesbay commented 3 years ago

@john-- Hey ! sorry for delay , this weekend ill do a large update, ill think is it possible to include this functionality.

JohnRSim commented 2 years ago

Looking forward to the update! :)

john-- commented 2 years ago

Also very interested in the updates here :)

john-- commented 2 years ago

@bytesbay any luck?

bytesbay commented 2 years ago

@john-- Yep, added statement option in 2.0 version

deepspacebsc-dev commented 2 years ago

Thank you btw. Finally getting around to trying this out today.