How do I get refresh_token using id_token I have received in authorization_code grant? Skip to main content
https://support.okta.com/help/answers?id=9062a000000xafxqa0&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Anand MogheAnand Moghe 

How do I get refresh_token using id_token I have received in authorization_code grant?

I am using PHP language and doing an authorization_code grant. It returns with the code and then I can get access_token. Now how do I get the refresh token using the access_token or id_token or authorization code using /oauth2/v1/token  endpoint?
Paul AuerPaul Auer (Okta, Inc.)

Thank you for contacting Okta Support.

As far as I could find in our documentation and browsing through the API calls from Postman, it seems that you can get the Access Token with the Refresh Token, but I don't think it works vice versa. This is the documentation I found regarding this question: https://developer.okta.com/standards/OAuth/index#refresh-token
For further assistance, please open a Support ticket.

Thank you,
Paul Auer
Technical Support Engineer | Okta