# Refresh Token API Documentation is Incorrect/Outdated

**URL:** <https://discuss.dev.twitch.com/t/refresh-token-api-documentation-is-incorrect-outdated/54592>\
**Category:** API\
**Created:** [January 25, 2024, 5:24pm UTC](https://discuss.dev.twitch.com/t/refresh-token-api-documentation-is-incorrect-outdated/54592 "2024-01-25T17:24:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gambloide](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/gambloide/32/20429_2.png) [@Gambloide](https://discuss.dev.twitch.com/u/Gambloide)\
**Post date:** [January 25, 2024, 5:24pm UTC](https://discuss.dev.twitch.com/t/refresh-token-api-documentation-is-incorrect-outdated/54592/1 "2024-01-25T17:24:45Z")

</div>

[Refreshing Access Tokens | Twitch Developers](https://dev.twitch.tv/docs/authentication/refresh-tokens/) documents the `client_secret` attribute as `required` which is not correct anymore. It is only required for confidential client types, not for public ones. Public clients using the recently introduced [Device Code Grant Flow](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#device-code-grant-flow) do not have a `client_secret` and do not need to provide it.

My tests confirm this, as I was able to exchange a refresh token of a public client for a new access token without including a `client_secret` attribute in the body of the request.

_I was not able to provide this feedback on the documentation page itself, since Twitch forces users to enable cross-site tracking in their browser for that … but that is a different topic. I just mention it to explain why this report landed here instead._

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 25, 2024, 5:29pm UTC](https://discuss.dev.twitch.com/t/refresh-token-api-documentation-is-incorrect-outdated/54592/2 "2024-01-25T17:29:19Z")

</div>

Documentation issues can be filed on the github - [Issues · twitchdev/issues · GitHub](https://github.com/twitchdev/issues/issues)

---

<div class="post-metadata">

**Author:** ![Gambloide](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/gambloide/32/20429_2.png) [@Gambloide](https://discuss.dev.twitch.com/u/Gambloide)\
**Post date:** [January 25, 2024, 5:56pm UTC](https://discuss.dev.twitch.com/t/refresh-token-api-documentation-is-incorrect-outdated/54592/3 "2024-01-25T17:56:54Z")

</div>

I keep forgetting that repo exists, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [February 24, 2024, 5:57pm UTC](https://discuss.dev.twitch.com/t/refresh-token-api-documentation-is-incorrect-outdated/54592/4 "2024-02-24T17:57:33Z")

</div>

Closed on February 24, 2024, 5:57pm UTC

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