Hi @Marco vanW
The "offline_access" permission is necessary. You must include this permission in the scope to receive a refresh token.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.