# How to generate refresh token for production

**URL:** <https://developer.squareup.com/forums/t/how-to-generate-refresh-token-for-production/4960>\
**Category:** Feature Requests\
**Created:** [January 28, 2022, 10:45am UTC](https://developer.squareup.com/forums/t/how-to-generate-refresh-token-for-production/4960 "2022-01-28T10:45:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keerthi](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@keerthi](https://developer.squareup.com/forums/u/keerthi)\
**Post date:** [January 28, 2022, 10:45am UTC](https://developer.squareup.com/forums/t/how-to-generate-refresh-token-for-production/4960/1 "2022-01-28T10:45:18Z")

</div>

We are working on creating a connection between Adobe and square developer account for production toggle.  
However We have details of Application ID, Secret and Access Token for production toggle and we would also required Refresh token as well.  
Please let me know How we can generate refresh Token for Production toggle

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [January 28, 2022, 4:54pm UTC](https://developer.squareup.com/forums/t/how-to-generate-refresh-token-for-production/4960/2 "2022-01-28T16:54:34Z")

</div>

👋 With Square a `refresh_token` is returned in the [ObtainToken](https://developer.squareup.com/reference/square/oauth-api/obtain-token) API call after the call to [Authorize](https://developer.squareup.com/reference/square/oauth-api/authorize) when your application goes through OAuth. 🙂
