Ask HN: How should I approach to write a clone of login with QR?

2 points by xk0nsid ↗ HN
I want to write a login with QR type of system (bcuz I'm curious about how it works). I have some idea on how to approach this problem, but I have more confusions than solutions. What I want is for the website to display a qr, the end user should use a scanner app and scan the qr, and the login should happen immediately (almost as if it's realtime). I'm not sure the already implemented systems are "real" realtime or not like the web.whatsapp.com or xiaomi's mi store. I'm thinking of writing this in Golang. Any guidance will be very helpful.

6 comments

[ 3.1 ms ] story [ 23.2 ms ] thread
It's a very interesting read. But I'm looking for some technical discussion. I want some technical perspective from people in the HN community. I believe I would definitely find a lot of things that I could never imagine.
I think the two ways most likely to trigger an HN discussion on the topic are:

1. Build a prototype and post it as a "Show HN". This has the advantage of moving toward the desire to write one.

2. Post an interesting article [or articles] about the topic.

A variant of 2 is to post a self-authored article[s]. Writing articles probably has the advantage of furthering understanding of the problem more so than just reading about it.

Writing about or prototyping are more likely to produce previously unconsidered technical information than a question because of the internet's natural tendency to produce 'You Are Wrong' comments.

Good luck.

Great reply. Thanks. I think I'll create a working prototype and come back with my problems(or possibly solutions).