vandan's avatar
Level 13

login using qrcode like whatsup

i have custom login system without auth so any idea how to login using qrcode like whatup ?

0 likes
2 replies
Sinnbeck's avatar

I don't know whatsup, but I would think it is simple in theory

  1. Create a qr code that points to your website with a personal login token (?token=supersecret
  2. Add logic to the route that matches the token with a user and logs the user in

My only concern is.. Is it safe? How do they ensure I cannot get your qr code?

Edit : assumed you meant whatsapp. They refresh the qr code on the website every x seconds. Just create a new secret key and update the users table, then show the new qr code

1 like

Please or to participate in this conversation.