# Device flow + refresh token - is client secret really required?

**URL:** <https://community.auth0.com/t/device-flow-refresh-token-is-client-secret-really-required/93066>\
**Category:** Get Help\
**Tags:** device-flow\
**Created:** [October 25, 2022, 2:37pm UTC](https://community.auth0.com/t/device-flow-refresh-token-is-client-secret-really-required/93066 "2022-10-25T14:37:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean.mclemon1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean.mclemon1/32/33885_2.png) [@sean.mclemon1](https://community.auth0.com/u/sean.mclemon1)\
**Post date:** [October 25, 2022, 2:37pm UTC](https://community.auth0.com/t/device-flow-refresh-token-is-client-secret-really-required/93066/1 "2022-10-25T14:37:40Z")

</div>

I was familiarising myself with the device flow and made the following project to demo how to acquire the device/user code, and then how to use the refresh token to acquire an access token: [test-device-flow](https://github.com/smcl/test-device-flow)

When I was doing so I was a little puzzled by the Auth0 docs @ [Call Your API Using the Device Authorization Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-device-authorization-flow). They include guidance that Client Secret should be included when using the refresh token. This sounded odd - because if this is a native or a web application and we have to ship the client secret then that defeats the purpose of it being a “secret”. I retried my sample without any mention of the client secret, and it worked just fine.

Is this documentation maybe wrong or out of date?

The file on GitHub is: [docs/refresh-tokens.md at master · auth0/docs · GitHub](https://github.com/auth0/docs/blob/master/articles/flows/guides/device-auth/includes/refresh-tokens.md), and the commit that introduced this is the most recent change to that file: [fe1d151d4fd44ca17179b47de82977ec92959ec6](https://github.com/auth0/docs/commit/fe1d151d4fd44ca17179b47de82977ec92959ec6)

The reason I’m asking is because I suspect many people will be exposing this Client Secret by following this guidance, possibly unnecessarily.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 27, 2022, 6:35pm UTC](https://community.auth0.com/t/device-flow-refresh-token-is-client-secret-really-required/93066/4 "2022-10-27T18:35:02Z")

</div>

Hey there @sean.mclemon1!

> [@sean.mclemon1](#):
>
> Is this documentation maybe wrong or out of date?

Thanks a bunch for pointing this out - The client secret is certainly not required in the context of a native app as you’ve noticed/pointed out. I believe this documentation takes into account that the device flow can be used for a confidential client, _but_ that is certainly not the primary use-case and the documentation reads that way. I’m going to request the docs are updated to clarify.

Thanks again! 🙏

---

<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:** [November 10, 2022, 6:35pm UTC](https://community.auth0.com/t/device-flow-refresh-token-is-client-secret-really-required/93066/5 "2022-11-10T18:35:32Z")

</div>

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