Login by QR code?

I need help to solve the following use case.

We publish a print catalog for our agents and each agent has a unique QR code sticker on the cover of the catalog. The catalog features yacht listings in which each yacht has its unique qr code as well. The yacht listings are managed in a bubble application.

The idea is that a reader of the magazine scans the qr code of the agent, is then logged in with the agents credentials and when the reader scans the QR code of a yacht, is then brought to the yacht page with the agents credentials. When the reader makes an inquiry the inquiry must be logged in a way that we know from which agent (catalog) the inquiry is coming from.

What would be a elegant solution to this? We can only customize the catalog QR code, not the QR code of each yacht for each agent.

Thank you for your fast help.