Auth0 Home Blog Docs

Method to get new access_token based on refresh_token in PHP SDK

sdk
access_token
php
refresh_token

#1

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?


#2

Looking at the code I would consider the oauth_token method 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 for such a request it may do the trick.


#3

I have the same question, did you resolve this?


#4