Hi guys,
Looks like there is a bug where we're only returning a refresh token if the grant type is "authorization_code" and the client does not have an active token with the specific user.
I've created a ticket here https://mattermost.atlassian.net/browse/PLT-6357 to fix the issue. Sorry for the inconvenience