# Authorization Code Flow with PKCE - Refresh token

**URL:** <https://devforum.okta.com/t/authorization-code-flow-with-pkce-refresh-token/7627>\
**Category:** Questions\
**Created:** [January 13, 2020, 8:31pm UTC](https://devforum.okta.com/t/authorization-code-flow-with-pkce-refresh-token/7627 "2020-01-13T20:31:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nshivade](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nshivade](https://devforum.okta.com/u/nshivade)\
**Post date:** [January 13, 2020, 8:31pm UTC](https://devforum.okta.com/t/authorization-code-flow-with-pkce-refresh-token/7627/1 "2020-01-13T20:31:58Z")

</div>

Per okta documentation for Auth Code with PKCE, scope=offline\_access for response\_type=code (/authorize endpoint) should return refresh token in addition to access token. Instead, I see an error that indicates, offline\_access is an invalid scope.  
Exact response: {“error”:“invalid\_scope”,“error\_description”:“Browser requests to the token endpoint may not include the offline\_access scope.”}  
Could you please let me know if I am missing something, or refresh\_token is not supported with auth code flow with PKCE.  
Please confirm.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 13, 2020, 9:06pm UTC](https://devforum.okta.com/t/authorization-code-flow-with-pkce-refresh-token/7627/2 "2020-01-13T21:06:38Z")

</div>

For anyone that has this question, it has been answered in the following thread: [Auth Code with PKCE - Refresh Token](https://devforum.okta.com/t/auth-code-with-pkce-refresh-token/7625/2)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 23, 2024, 7:57pm UTC](https://devforum.okta.com/t/authorization-code-flow-with-pkce-refresh-token/7627/3 "2024-01-23T19:57:18Z")

</div>

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