[04:10] *** mkb_ has joined #arpnetworks [04:12] *** mkb has quit IRC (Ping timeout: 240 seconds) [06:23] *** ziyourenxiang has joined #arpnetworks [06:57] *** ziyourenxiang has quit IRC (Quit: Leaving) [07:41] *** dj_goku has quit IRC (Remote host closed the connection) [07:50] *** dj_goku has joined #arpnetworks [07:50] *** dj_goku has quit IRC (Changing host) [07:50] *** dj_goku has joined #arpnetworks [12:56] *** mkb_ is now known as mkb [20:05] What technology does Whatsapp Web utilize to sync a QR Code with a mobile device, or is that they pretty much rolled their own proprietary solution? [20:05] ..? [20:06] wait, do you mean log in with qr or something [20:06] yea the login [20:06] it's pretty much an authentication code / attestation, many chinese sites do this [20:06] tencent games all do qr login [20:06] because people have to sign in via cybercafe computers that are unsafe/keylogged [20:07] it is straightforward to implement? [20:07] you scan the qr random token on your phone, enter u/p on your phone (in the app where the token is also attached/read), and they 'approve' that qr random token for login [20:07] are there libraries etc out there for programmers? [20:07] think of it as basically clicking a oauth button [20:07] except more state is handled by the server [20:07] not sure if there are libraries, i rarely if ever see this auth flow outside of asia [20:08] tl;dr afaik is session: asdfjkl (in QR; actually some maximally long crypto-random token) / app: scans qr and provides either existing token or a login window on a device you own; when you log in you basically tell it "tie this session to asdfjkl instead of creating a new one" [20:09] so in the browser afterward you just reload and your same cookie is already 'active' [20:09] right [20:09] i feel like there's probably not much of a library thing for this, but it should just be the same as a login form except tracking active but not used yet tokens in redis or something [20:10] and when they're consumed just dump it in your sessions db table or whatever [21:12] *** Nahual has quit IRC (Quit: Leaving.) [23:59] *** Lucifer333 has joined #arpnetworks