qr code
hi , hello all , any idea how implements the following workflow ? : - I open a page on a laptop - I get unique QR code - I scan it with my mobile - in the mobile I login -once I login the original screen with the barcode will automatically detect i successfully authenticated and give me my content . I assume as beginning that QR code page will be considered as an authentication page , also the value of the QR code will be unique for to identify the session . . or there are better and secure ways . Hi @FouadTarabolsi maybe you could do it like this 1 ) Create qr code on pageload /button click etc . You can use a library for that . The value /URL of the QR Code is something like a magic link with a auth token 2 ) When you scan the qr code it reads the auth token and fires an event (maybe something simple like a boolean value that is changing or just store the authtoken in the db ) that would then go to your database 3 ) I don ´t really know how to go about automatically detecting the authentifcation apart from using realtime features Also do you mean mobile app or just a mobile webpage in the browser ? I think there is even a package that has a qr code creator but as mentioned before you could also do it yourself using a js library Or maybe could build something like a loop on the original page to refetch the api data or change attribute to make use of autofetch every second for a timeframe of 5mins or so to check if a field in your db contains the authtoken or the boolean is true etc . I would definitely use realtime for this but this is just a possible alternative .