# Adding device code as grant type to existing application

**URL:** <https://community.auth0.com/t/adding-device-code-as-grant-type-to-existing-application/86046>\
**Category:** Get Help\
**Tags:** device-flow, login, auth0\
**Created:** [June 28, 2022, 8:38am UTC](https://community.auth0.com/t/adding-device-code-as-grant-type-to-existing-application/86046 "2022-06-28T08:38:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tchassagnette](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tchassagnette/32/28582_2.png) [@tchassagnette](https://community.auth0.com/u/tchassagnette)\
**Post date:** [June 28, 2022, 8:38am UTC](https://community.auth0.com/t/adding-device-code-as-grant-type-to-existing-application/86046/1 "2022-06-28T08:38:37Z")

</div>

Hi all,

We currently have an Angular application that calls our API in a secured way with access tokens thanks to Auth0.  
On the Auth0 side we created a SPA application and everything works perfectly fine so far.

We started developing a mobile application that will call our API directly. As mobiles are input constrained devices we were thinking about using the Device Authorization Flow to remove some login pain to our customers.

From my understanding, to enable the Device Authorization Flow we have to create a new “Native” Auth0 application and use it to request and validate access tokens.  
This means I would have to migrate my API and Angular application to use this new “Native” Auth0 application.  
Did I miss something ?  
Is there a way to avoid this migration by adding the device code as grant type to my existing SPA Auth0 application ?  
Or would that cause any security issue ?

Cheers

---

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [December 5, 2024, 11:42pm UTC](https://community.auth0.com/t/adding-device-code-as-grant-type-to-existing-application/86046/2 "2024-12-05T23:42:47Z")

</div>

Hello @tchassagnette!

To call an API from an input-constrained device using the Device Authorization flow does require a Native App made in your tenant. You should be able to keep the API as is. I found a [tutorial](https://auth0.com/docs/quickstart/native/device/01-login) on how to set up this flow as well as an interactive [Device Flow Playground](https://auth0.github.io/device-flow-playground/) which should help you familiarize yourself with the flow.

Let me know if you have any other questions and I hope this helps!

Best,  
Alex

---

<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:** [March 18, 2025, 2:22pm UTC](https://community.auth0.com/t/adding-device-code-as-grant-type-to-existing-application/86046/3 "2025-03-18T14:22:41Z")

</div>

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