# Method to get new access\_token based on refresh\_token in PHP SDK

**URL:** <https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721>\
**Category:** Get Help\
**Tags:** access\_token, sdk, refresh\_token, php\
**Created:** [August 2, 2017, 3:27pm UTC](https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721 "2017-08-02T15:27:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick.brunmayr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrick.brunmayr/32/7785_2.png) [@patrick.brunmayr](https://community.auth0.com/u/patrick.brunmayr)\
**Post date:** [August 2, 2017, 3:27pm UTC](https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721/1 "2017-08-02T15:27:17Z")

</div>

Could not find any method in the PHP SDK that would generate a new access\_token based on the refresh\_token. Is there something missing ? How can i do that without doing manual CURL calls?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 2, 2017, 9:19pm UTC](https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721/2 "2017-08-02T21:19:49Z")

</div>

Looking at the code I would consider the `oauth_token` [method](https://github.com/auth0/auth0-PHP/blob/master/src/API/Authentication.php#L260) with the respective refresh token grant type.

My knowledge of PHP is little, but that method seems to be calling the expected endpoint for a refresh token request, `/oauth/token`, so if you pass the [expected options](https://auth0.com/docs/tokens/refresh-token/current#use-a-refresh-token) for such a request it may do the trick.

---

<div class="post-metadata">

**Author:** ![barrie.treloar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/barrie.treloar/32/7660_2.png) [@barrie.treloar](https://community.auth0.com/u/barrie.treloar)\
**Post date:** [February 9, 2018, 12:50pm UTC](https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721/3 "2018-02-09T12:50:04Z")

</div>

I have the same question, did you resolve this?

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721/4 "2018-03-02T05:55:43Z")

</div>


