I'm successfully using the Dynamics Business Central APIs to create and update content but my issue is that when I authorize my app using Oauth2 I'm not getting a refresh token to renew my access token. Given that the access token has a relatively short life it's somewhat cumbersome to have to keep logging in.
This is the url I'm using to get the code:-
login.microsoftonline.com/.../authorize
And then this URL to exchange the code for an access token
login.microsoftonline.com/.../token
And this is the result that I get which as you can see has no refresh token
{"token_type":"Bearer",
"scope":"api.businesscentral.dynamics.com/Financials.ReadWrite.All api.businesscentral.dynamics.com/SmartListDesigner.ReadWrite.All api.businesscentral.dynamics.com/user_impersonation ">api.businesscentral.dynamics.com/.default",
"expires_in":3599,
"ext_expires_in":3599,
"access_token":"12232 ..blah..blah...d3s"}
Is there a way to make the authorization process provide a refresh token so that my users don't have to keep logging in?