We are using the Device Authorization Flow to login to our application. When they open the browser to verify the device code, if they already are logged in, is there a way to display what user they are linking the device to? And letting them to choose another account when clicking confirm if that wasn’t correct?
Hi @idad,
Welcome to the Auth0 Community and thank you for your post !
In Auth0 there is no out-of-the-box solution for selecting an account after successful authentication, so since the user is already logged in the only option that i can think of that would suit your use case would be passing the prompt=login
as a query parameter. This way the user is forced to re-authenticate and will be redirected to the login screen, so they can select which account they want to link.
You can check out this documentation, which better explains all the necessary prerequisites for passing this parameter in your response.
Additionally you can also have a look at this community post since it might come handy.
I hope this helps.
Best wishes,
Remus
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.