I am working on a scenario similar to web usage of WhatsApp. I want to scan a QR code on browser from inside mobile app and authenticate the user to login.
What would be the best way to send the authentication message in QR code? I am planning to use JSON
as I need to send few string fields? Also, I plan to do base 64 encoding and decoding. Is it a good way to do it? Does anyone know how WhatsApp is doing it?