Open gampangdibaca opened 3 years ago
Hi @gampangdibaca.
You must return the QR image using an http response. When the image is correctly scanned you must notify the client of this operation, you can do it through a websocket or SSE (see the Mercure Hub project).
I don't see an easy way to solve it.
@gampangdibaca i think u should add wg.wait or channel before http.redirect.
wa connect -> login finish -> signaling the wg.wait or channel -> continue http redirect.
My program is already working, but i want to redirect the page to home after scanning qr and login process is finished.
Here is part of my code :
i have already tried using channel and waitgroup. but it is blocking the qr from getting shown on the screen. If anyone can help, that would be so much appreciated.