Use camera/qr-code scanner in config flow

Hey everyone,

I have an app for which im developing an integration where an oauth flow is invoced by scanning a qr code which is generated by another app. This temporary password is valid for 30 secs. So i need to fastly scan this code to be in time frame from within the config flow.
So my question: is it possible to only allow the usage of the config flow on a device with a cam and to use a scanner/ocr package in my integration and use it in the config flow?

Best
Stefan