# How to authenticate user from app in device flow rather than using browser?

**URL:** <https://community.auth0.com/t/how-to-authenticate-user-from-app-in-device-flow-rather-than-using-browser/147835>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [September 24, 2024, 1:04am UTC](https://community.auth0.com/t/how-to-authenticate-user-from-app-in-device-flow-rather-than-using-browser/147835 "2024-09-24T01:04:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joey/32/33525_2.png) [@joey](https://community.auth0.com/u/joey)\
**Post date:** [September 24, 2024, 1:04am UTC](https://community.auth0.com/t/how-to-authenticate-user-from-app-in-device-flow-rather-than-using-browser/147835/1 "2024-09-24T01:04:19Z")

</div>

I am following the instruction to setup device flow authentication: [Call Your API Using the Device Authorization Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/device-authorization-flow/call-your-api-using-the-device-authorization-flow).

It works fine based on the steps in the doc. But it uses browser to open the `verification_uri_complete` received from `/oauth/device/code` post response.

My use case is to let the user scan a QR code which will open an app on their mobile. The app is built by me. The app is already authenticated with the user’s credential via using the auth0 sdk. So the app has got the access token and refresh token. How can I use the existing token from the app to authenticate the device flow? I don’t want the user to login again if he already logged in to the app.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 27, 2025, 9:32pm UTC](https://community.auth0.com/t/how-to-authenticate-user-from-app-in-device-flow-rather-than-using-browser/147835/3 "2025-03-27T21:32:25Z")

</div>

Hi @joey

Thank you for posting your question on the community!

I am sorry about the late reply to your inquiry.

Unfortunately, in order for the Device Authorization Flow to start, the user needs to start the authentication process. Even if the user is already authenticated, the access and refresh token cannot be used to initialize the device authorization flow since it is a part of the authentication process.

If you have any other questions, feel free to leave a reply or post again on the community!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 10, 2025, 9:32pm UTC](https://community.auth0.com/t/how-to-authenticate-user-from-app-in-device-flow-rather-than-using-browser/147835/4 "2025-04-10T21:32:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
