# Device Authorization Flow saves extra parameter to app metadata

**URL:** <https://community.auth0.com/t/device-authorization-flow-saves-extra-parameter-to-app-metadata/169309>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [January 19, 2025, 6:54pm UTC](https://community.auth0.com/t/device-authorization-flow-saves-extra-parameter-to-app-metadata/169309 "2025-01-19T18:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidbozo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidbozo/32/70942_2.png) [@davidbozo](https://community.auth0.com/u/davidbozo)\
**Post date:** [January 19, 2025, 6:54pm UTC](https://community.auth0.com/t/device-authorization-flow-saves-extra-parameter-to-app-metadata/169309/1 "2025-01-19T18:54:46Z")

</div>

Hi!  
I’m using Device Authorization Flow and i need to pass an extra (serial) parameter which needs to be saved as app metadata. After that it would be embended into all acccess token as a custom claim.  
I tried to use Actions but it seems like post login does not triggers when i exchange my `device_code` at `/oauth/token`. Am i seeing it right?

Is there a work around for my problem?

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [January 20, 2025, 6:40pm UTC](https://community.auth0.com/t/device-authorization-flow-saves-extra-parameter-to-app-metadata/169309/3 "2025-01-20T18:40:05Z")

</div>

Hi @davidbozo,

Welcome to the Auth0 Community!  
You should be on the right track with a Post-Login Action, as there is the option to use [Event Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object) to get the [Device Code parameters](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-device-authorization-flow#device-code-parameters).

This being said, while searching a bit on this matter, I believe that currently it’s not possible to pass custom parameters to _/oauth/device/code_ like you can on _/authorize_ ( limitation has been mentioned on this [page](https://auth0.com/docs/quickstart/native/device/01-login#limitations) ) and you need to use a custom scope value instead. Please find this [Knowledge Article](https://community.auth0.com/t/how-to-pass-custom-data-in-post-requests-to-oauth-device-code-with-device-code-flow/140432) which explains in more detail.

If you would like to, you can leave your [feedback](https://auth0.com/feedback) to bring this to the attention of other users who might be looking for this feature. If there is a wider interest, development on the matter can be made in order to implement this functionality.

Hope this helped!  
Gerald

---

<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:** [February 3, 2025, 6:40pm UTC](https://community.auth0.com/t/device-authorization-flow-saves-extra-parameter-to-app-metadata/169309/4 "2025-02-03T18:40:24Z")

</div>

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