'How to obtain refresh token for sharepoint app-only model?

We've a customer requirement to authenticate to sharepoint online using sharepoint app-only model.Obtained access token by posting a request to Microsoft Azure ACS," https://accounts.accesscontrol.windows.net/cde6fa59-abb3-4971-be01-2443c417abcd/tokens/OAuth/2" with client_credentials in request body using postman tool.

As access token expires,how to get refresh token?From the above request,we only get access token.Do we've a separate endpoint to retreive refresh token.Please help.enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source