The blockchain is evolving fast, a lot of methods documented don't work anymore and have been depreciated.
Can someone post a working example of how to sign data with Metamask and vanilla JavaScript? I'd really appreciate it :D
The use case is to sign a user and create a session on the server, making sure 100% that the user is in fact truly the owner of their address. Thank you!