I believe our documentation on updating the authentication flow or the connection itself and how to pass dynamic provider specific parameters should be helpful.
This way, you should be able to set the connection to pass in the device_id in order to exchange it for a valid access token.
Let me know if you have any other updates on the matter,
Kind Regards,
Nik